Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001523/0.001523, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.478/1.478, allocations: 221.5 MB / 230.3 MB, free: 7.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008403/0.0008403, allocations: 79.42 kB / 281.2 MB, free: 5.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.242e-05/2.243e-05, allocations: 0 / 337.1 MB, free: 9.953 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1035, allocations: 50.42 MB / 387.6 MB, free: 7.488 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3201/0.4237, allocations: 77.74 MB / 465.3 MB, free: 1.074 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001854/0.4239, allocations: 63.97 kB / 465.4 MB, free: 1.012 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01248/0.4364, allocations: 4.38 MB / 469.7 MB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4365, allocations: 3.938 kB / 469.7 MB, free: 12.62 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.764e-05/0.4365, allocations: 15.94 kB / 469.8 MB, free: 12.61 MB / 346.7 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.0007391/0.4372, allocations: 0.4989 MB / 470.3 MB, free: 12.06 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.4373, allocations: 12.03 kB / 470.3 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.242e-05/0.4374, allocations: 23.72 kB / 470.3 MB, free: 12.03 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000315/0.4377, allocations: 254.9 kB / 470.5 MB, free: 11.74 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/0.4377, allocations: 16 kB / 470.6 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.713e-05/0.4378, allocations: 12 kB / 470.6 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002556/0.438, allocations: 140.8 kB / 470.7 MB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000316/0.4383, allocations: 201.9 kB / 470.9 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.4384, allocations: 0 / 470.9 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.818e-05/0.4384, allocations: 0 / 470.9 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.647e-05/0.4384, allocations: 20.42 kB / 470.9 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00108/0.4395, allocations: 0.7677 MB / 471.7 MB, free: 10.53 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002439/0.4398, allocations: 162.5 kB / 471.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.4399, allocations: 88.78 kB / 471.9 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.4e-05/0.44, allocations: 89.09 kB / 472 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.346e-05/0.44, allocations: 34.56 kB / 472.1 MB, free: 10.12 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.313e-06/0.44, allocations: 0 / 472.1 MB, free: 10.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003825/0.4404, allocations: 204.2 kB / 472.2 MB, free: 9.918 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.219e-05/0.4405, allocations: 59.34 kB / 472.3 MB, free: 9.848 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.4406, allocations: 159.1 kB / 472.5 MB, free: 9.684 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.4406, allocations: 29.7 kB / 472.5 MB, free: 9.648 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.298e-05/0.4407, allocations: 144.4 kB / 472.6 MB, free: 9.504 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.956e-05/0.4408, allocations: 86.75 kB / 472.7 MB, free: 9.418 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.163e-05/0.4408, allocations: 0 / 472.7 MB, free: 9.418 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.441, allocations: 330.8 kB / 473 MB, free: 9.086 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.4411, allocations: 67.98 kB / 473.1 MB, free: 9.02 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001199/0.4412, allocations: 91.59 kB / 473.2 MB, free: 8.914 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001443/0.4414, allocations: 88.89 kB / 473.3 MB, free: 8.828 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.4414, allocations: 0 / 473.3 MB, free: 8.828 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003276/0.4417, allocations: 226.9 kB / 473.5 MB, free: 8.605 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.4417, allocations: 5.25 kB / 473.5 MB, free: 8.602 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.4417, allocations: 0 / 473.5 MB, free: 8.602 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.4418, allocations: 4 kB / 473.5 MB, free: 8.598 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002763/0.442, allocations: 63.89 kB / 473.6 MB, free: 8.535 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.4421, allocations: 8.062 kB / 473.6 MB, free: 8.527 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001382/0.4422, allocations: 28.69 kB / 473.6 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.015e-05/0.4422, allocations: 11.97 kB / 473.6 MB, free: 8.488 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.86e-05/0.4423, allocations: 112.9 kB / 473.7 MB, free: 8.371 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000301/0.4426, allocations: 197.1 kB / 473.9 MB, free: 8.172 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.974e-05/0.4427, allocations: 19.81 kB / 473.9 MB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004248/0.4431, allocations: 251 kB / 474.2 MB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.4431, allocations: 7.953 kB / 474.2 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.4431, allocations: 0 / 474.2 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.4432, allocations: 0 / 474.2 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000795/0.444, allocations: 0.5925 MB / 474.8 MB, free: 7.266 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.444, allocations: 0 / 474.8 MB, free: 7.266 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002974/0.4443, allocations: 55.95 kB / 474.8 MB, free: 7.211 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/0.4443, allocations: 11.94 kB / 474.9 MB, free: 7.199 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.243e-05/0.4443, allocations: 3.953 kB / 474.9 MB, free: 7.195 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.4443, allocations: 3.938 kB / 474.9 MB, free: 7.191 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4443, allocations: 4 kB / 474.9 MB, free: 7.188 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005653/0.4449, allocations: 431.6 kB / 475.3 MB, free: 6.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.522e-05/0.445, allocations: 116.8 kB / 475.4 MB, free: 6.617 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.939e-05/0.4451, allocations: 4 kB / 475.4 MB, free: 6.613 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001541/0.4452, allocations: 20.12 kB / 475.4 MB, free: 6.594 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.436e-05/0.4453, allocations: 19.97 kB / 475.4 MB, free: 6.574 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.4453, allocations: 8 kB / 475.5 MB, free: 6.566 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.596e-05/0.4454, allocations: 125.6 kB / 475.6 MB, free: 6.445 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4454, allocations: 0 / 475.6 MB, free: 6.445 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002869/0.4457, allocations: 51.84 kB / 475.6 MB, free: 6.395 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (cosB.phi,cosBminus.phi,sinA.phi,sinAminus.phi,integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008269/0.4465, allocations: 0.9738 MB / 476.6 MB, free: 5.391 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002924/0.4468, allocations: 179.9 kB / 476.8 MB, free: 5.215 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.4468, allocations: 0 / 476.8 MB, free: 5.215 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000145/0.447, allocations: 104.4 kB / 476.9 MB, free: 5.113 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002509/0.4472, allocations: 12.52 kB / 476.9 MB, free: 5.102 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.4484, allocations: 0.6504 MB / 477.5 MB, free: 4.414 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003437/0.4488, allocations: 0.7711 MB / 478.3 MB, free: 3.617 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001427/0.4489, allocations: 50.02 kB / 478.4 MB, free: 3.57 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.4491, allocations: 79.41 kB / 478.4 MB, free: 3.492 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4491, allocations: 0 / 478.4 MB, free: 3.492 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02231/0.4714, allocations: 3.552 MB / 482 MB, free: 15.95 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002133/0.4717, allocations: 127 kB / 482.1 MB, free: 15.76 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.748/2.22, allocations: 0 / 482.1 MB, free: 15.76 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat does not exist to compare? outputFormat=mat