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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008885/0.0008885, allocations: 90.95 kB / 16.3 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009181/0.0009182, allocations: 181.5 kB / 17.2 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000436/0.0004363, allocations: 6.188 kB / 300.8 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1467, allocations: 50.43 MB / 351.2 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002776/0.1495, allocations: 1.819 MB / 353 MB, free: 9.855 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001209/0.1508, allocations: 0.6315 MB / 353.7 MB, free: 9.223 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000135/0.1509, allocations: 11.88 kB / 353.7 MB, free: 9.211 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001104/0.151, allocations: 27.78 kB / 353.7 MB, free: 9.184 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002056/0.1513, allocations: 55.78 kB / 353.8 MB, free: 9.129 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002272/0.1515, allocations: 71.86 kB / 353.8 MB, free: 9.059 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002658/0.1518, allocations: 152.1 kB / 354 MB, free: 8.91 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002422/0.152, allocations: 85.88 kB / 354.1 MB, free: 8.824 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000145/0.1522, allocations: 63.7 kB / 354.1 MB, free: 8.762 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000152/0.1523, allocations: 87.55 kB / 354.2 MB, free: 8.676 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.584e-05/0.1524, allocations: 8 kB / 354.2 MB, free: 8.668 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.812e-05/0.1525, allocations: 12 kB / 354.2 MB, free: 8.656 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.912e-05/0.1525, allocations: 35.84 kB / 354.3 MB, free: 8.621 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.108e-05/0.1526, allocations: 61.52 kB / 354.3 MB, free: 8.555 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002187/0.1528, allocations: 163.6 kB / 354.5 MB, free: 8.395 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.1528, allocations: 0 / 354.5 MB, free: 8.395 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1528, allocations: 0 / 354.5 MB, free: 8.395 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.1529, allocations: 0 / 354.5 MB, free: 8.395 MB / 286.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.0009444/0.1538, allocations: 0.5067 MB / 355 MB, free: 7.84 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.1539, allocations: 15.91 kB / 355 MB, free: 7.824 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.311e-05/0.1539, allocations: 54.55 kB / 355.1 MB, free: 7.762 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.654e-05/0.154, allocations: 27.67 kB / 355.1 MB, free: 7.734 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003482/0.1544, allocations: 250.5 kB / 355.3 MB, free: 7.449 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.779e-05/0.1544, allocations: 16.44 kB / 355.4 MB, free: 7.434 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.785e-05/0.1545, allocations: 20 kB / 355.4 MB, free: 7.414 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005839/0.1551, allocations: 258.6 kB / 355.6 MB, free: 7.148 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.1551, allocations: 4 kB / 355.6 MB, free: 7.145 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.672e-05/0.1551, allocations: 8 kB / 355.6 MB, free: 7.137 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-05/0.1552, allocations: 20.38 kB / 355.7 MB, free: 7.117 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004948/0.1557, allocations: 197.6 kB / 355.9 MB, free: 6.922 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001424/0.1571, allocations: 0.8343 MB / 356.7 MB, free: 6.027 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003747/0.1575, allocations: 187 kB / 356.9 MB, free: 5.836 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001305/0.1576, allocations: 89.27 kB / 357 MB, free: 5.73 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.1577, allocations: 38.75 kB / 357 MB, free: 5.684 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.292e-06/0.1577, allocations: 0 / 357 MB, free: 5.684 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.001571/0.1593, allocations: 0.7492 MB / 357.7 MB, free: 4.883 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.259e-05/0.1593, allocations: 55.41 kB / 357.8 MB, free: 4.816 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002375/0.1596, allocations: 213 kB / 358 MB, free: 4.598 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.931e-05/0.1596, allocations: 33.7 kB / 358 MB, free: 4.559 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.1597, allocations: 140.4 kB / 358.2 MB, free: 4.418 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.83e-05/0.1598, allocations: 90.75 kB / 358.3 MB, free: 4.328 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.275e-05/0.1598, allocations: 4 kB / 358.3 MB, free: 4.324 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.16, allocations: 334.8 kB / 358.6 MB, free: 3.988 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002115/0.1602, allocations: 83.95 kB / 358.7 MB, free: 3.906 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002266/0.1605, allocations: 131.3 kB / 358.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002251/0.1607, allocations: 95.97 kB / 358.9 MB, free: 3.672 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.1607, allocations: 0 / 358.9 MB, free: 3.672 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007055/0.1614, allocations: 291.8 kB / 359.2 MB, free: 3.383 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.991e-05/0.1615, allocations: 8 kB / 359.2 MB, free: 3.375 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.1615, allocations: 3.938 kB / 359.2 MB, free: 3.371 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.524e-05/0.1615, allocations: 4 kB / 359.2 MB, free: 3.367 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003104/0.1618, allocations: 59.89 kB / 359.3 MB, free: 3.309 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.1618, allocations: 4.062 kB / 359.3 MB, free: 3.305 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001287/0.162, allocations: 19.98 kB / 359.3 MB, free: 3.285 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.924e-05/0.162, allocations: 15.98 kB / 359.3 MB, free: 3.27 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003617/0.1624, allocations: 133.8 kB / 359.4 MB, free: 3.129 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.45e-05/0.1624, allocations: 27.73 kB / 359.5 MB, free: 3.102 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006761/0.1631, allocations: 307.1 kB / 359.8 MB, free: 2.801 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.485e-05/0.1632, allocations: 7.984 kB / 359.8 MB, free: 2.793 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.1632, allocations: 3.984 kB / 359.8 MB, free: 2.789 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.1632, allocations: 0 / 359.8 MB, free: 2.789 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001184/0.1644, allocations: 0.702 MB / 360.5 MB, free: 2.027 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.1644, allocations: 3.984 kB / 360.5 MB, free: 2.023 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002739/0.1647, allocations: 59.91 kB / 360.5 MB, free: 1.965 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.1647, allocations: 4.031 kB / 360.5 MB, free: 1.961 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.986e-05/0.1647, allocations: 8 kB / 360.5 MB, free: 1.953 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.1647, allocations: 0 / 360.5 MB, free: 1.953 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1647, allocations: 4 kB / 360.5 MB, free: 1.949 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008073/0.1655, allocations: 0.4943 MB / 361 MB, free: 1.426 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.1657, allocations: 116.9 kB / 361.2 MB, free: 1.293 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.542e-05/0.1657, allocations: 8 kB / 361.2 MB, free: 1.285 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.1659, allocations: 11.98 kB / 361.2 MB, free: 1.273 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.643e-05/0.1659, allocations: 23.97 kB / 361.2 MB, free: 1.25 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.166, allocations: 4 kB / 361.2 MB, free: 1.246 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000301/0.1663, allocations: 164.4 kB / 361.4 MB, free: 1.086 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1663, allocations: 0 / 361.4 MB, free: 1.086 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003106/0.1666, allocations: 48 kB / 361.4 MB, free: 1.039 MB / 286.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 (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.001666/0.1683, allocations: 1.124 MB / 362.5 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005017/0.1688, allocations: 215.9 kB / 362.7 MB, free: 15.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1688, allocations: 0 / 362.7 MB, free: 15.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002523/0.1691, allocations: 136 kB / 362.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002717/0.1693, allocations: 20.42 kB / 362.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003223/0.1726, allocations: 2.2 MB / 365.1 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007606/0.1733, allocations: 0.7719 MB / 365.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001421/0.1735, allocations: 49.89 kB / 365.9 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.1736, allocations: 83.41 kB / 366 MB, free: 12.32 MB / 302.1 MB Notification: Performance of SimCode: time 7.12e-07/0.1736, allocations: 0 / 366 MB, free: 12.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01655/0.1902, allocations: 4.152 MB / 370.2 MB, free: 8.277 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001882/0.1904, allocations: 169.4 kB / 370.3 MB, free: 8.039 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.879/2.069, allocations: 0 / 370.3 MB, free: 8.039 MB / 302.1 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