Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001284/0.001284, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00141/0.00141, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.514/1.514, allocations: 230.6 MB / 258.3 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 64.77 kB / 378.5 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2848, allocations: 53.37 MB / 431.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003762/0.2885, allocations: 2.241 MB / 434.2 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001551/0.2901, allocations: 0.7556 MB / 434.9 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001541/0.2902, allocations: 11.88 kB / 434.9 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002072/0.2905, allocations: 51.45 kB / 435 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002005/0.2907, allocations: 35.66 kB / 435 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003272/0.291, allocations: 123.6 kB / 435.1 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000335/0.2913, allocations: 227.7 kB / 435.3 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000216/0.2915, allocations: 80 kB / 435.4 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002241/0.2918, allocations: 99.58 kB / 435.5 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001839/0.2919, allocations: 115.5 kB / 435.6 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.919e-05/0.292, allocations: 19.94 kB / 435.7 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001022/0.2921, allocations: 35.98 kB / 435.7 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.86e-05/0.2922, allocations: 55.83 kB / 435.7 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.2923, allocations: 103.3 kB / 435.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003625/0.2926, allocations: 255.6 kB / 436.1 MB, free: 2.652 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2926, allocations: 4 kB / 436.1 MB, free: 2.648 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2926, allocations: 0 / 436.1 MB, free: 2.648 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.2926, allocations: 0 / 436.1 MB, free: 2.648 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009754/0.2936, allocations: 489.4 kB / 436.6 MB, free: 2.141 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.2937, allocations: 8.031 kB / 436.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.528e-05/0.2937, allocations: 54.73 kB / 436.6 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.2939, allocations: 36.73 kB / 436.7 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003157/0.2942, allocations: 194.7 kB / 436.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.094e-05/0.2942, allocations: 16.81 kB / 436.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.351e-05/0.2943, allocations: 28.36 kB / 436.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005085/0.2948, allocations: 250.8 kB / 437.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.2948, allocations: 4 kB / 437.2 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.139e-05/0.2948, allocations: 4 kB / 437.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-05/0.2948, allocations: 20.44 kB / 437.2 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000481/0.2953, allocations: 189.5 kB / 437.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.2966, allocations: 0.7982 MB / 438.2 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003897/0.297, allocations: 177.1 kB / 438.3 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002138/0.2972, allocations: 96.8 kB / 438.4 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.846e-05/0.2973, allocations: 16.34 kB / 438.4 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.22e-05/0.2973, allocations: 38.5 kB / 438.5 MB, free: 120 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.192e-06/0.2973, allocations: 0 / 438.5 MB, free: 120 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001565/0.2989, allocations: 0.6478 MB / 439.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.369e-05/0.299, allocations: 55.41 kB / 439.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002439/0.2992, allocations: 221 kB / 439.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.2992, allocations: 33.64 kB / 439.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.2994, allocations: 148.5 kB / 439.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.17e-05/0.2994, allocations: 83.28 kB / 439.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.137e-05/0.2995, allocations: 53.64 kB / 439.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.2997, allocations: 334.8 kB / 440 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002094/0.2999, allocations: 83.94 kB / 440.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002314/0.3001, allocations: 124.1 kB / 440.2 MB, free: 14.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000438/0.3006, allocations: 222.2 kB / 440.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.3006, allocations: 4 kB / 440.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005542/0.3011, allocations: 273.3 kB / 440.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.3011, allocations: 4 kB / 440.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.3011, allocations: 0 / 440.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.3012, allocations: 4 kB / 440.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002944/0.3015, allocations: 63.89 kB / 440.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.3015, allocations: 4 kB / 440.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000129/0.3016, allocations: 20.03 kB / 440.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.3016, allocations: 8 kB / 440.8 MB, free: 13.65 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001616/0.3018, allocations: 145.7 kB / 441 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.291e-05/0.3018, allocations: 27.84 kB / 441 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006569/0.3025, allocations: 295.2 kB / 441.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.3025, allocations: 4 kB / 441.3 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.3025, allocations: 0 / 441.3 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.3025, allocations: 4 kB / 441.3 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001185/0.3037, allocations: 0.6548 MB / 442 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.3037, allocations: 0 / 442 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002785/0.304, allocations: 59.95 kB / 442 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.042e-06/0.304, allocations: 4 kB / 442 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.304, allocations: 8.031 kB / 442 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.304, allocations: 7.938 kB / 442 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.304, allocations: 0 / 442 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000852/0.3049, allocations: 478.4 kB / 442.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.348e-05/0.3049, allocations: 43.84 kB / 442.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.809e-05/0.305, allocations: 12 kB / 442.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00015/0.3051, allocations: 15.92 kB / 442.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.237e-05/0.3052, allocations: 15.97 kB / 442.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-05/0.3052, allocations: 15.98 kB / 442.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001554/0.3054, allocations: 156.4 kB / 442.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3054, allocations: 3.938 kB / 442.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003313/0.3057, allocations: 47.94 kB / 442.8 MB, free: 11.59 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (cosB.phi,cosBminus.phi,sinA.phi,sinAminus.phi,der1.u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00118/0.3069, allocations: 1.027 MB / 443.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005241/0.3074, allocations: 218.8 kB / 444 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3074, allocations: 0 / 444 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002345/0.3077, allocations: 111.8 kB / 444.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003306/0.308, allocations: 24.38 kB / 444.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003833/0.3118, allocations: 2.704 MB / 446.9 MB, free: 7.387 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004146/0.3122, allocations: 0.7639 MB / 447.6 MB, free: 6.594 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000139/0.3124, allocations: 45.91 kB / 447.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001391/0.3125, allocations: 87.41 kB / 447.8 MB, free: 6.461 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3125, allocations: 0 / 447.8 MB, free: 6.461 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0323/0.3448, allocations: 4.72 MB / 452.5 MB, free: 1.832 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.074/8.419, allocations: 0 / 452.5 MB, free: 1.832 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 5e-05 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.97536339610815] Failed to read output from testmodel.py, exit status != 0: ['time', 'integrator.y', 'der1.y', 'cosB.phi', 'cosBminus.phi', 'sinA.phi', 'sinAminus.phi'] 8.4886121628806 8.505004648 8.209233105 Calling exit ...