Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.Rotational.InitializationConversion.SpringDamper,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_InitializationConversion_SpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.InitializationConversion.SpringDamper,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_InitializationConversion_SpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001301/0.001301, allocations: 101.2 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001529/0.00153, allocations: 203.3 kB / 17.9 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2267/0.2267, allocations: 45.91 MB / 344 MB, free: 12.08 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002498/0.0002499, allocations: 8 kB / 418.1 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1412, allocations: 63.46 MB / 481.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.InitializationConversion.SpringDamper): time 0.00329/0.1446, allocations: 2.591 MB / 484.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001377/0.146, allocations: 0.8344 MB / 484.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000164/0.1462, allocations: 11.94 kB / 485 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.703e-05/0.1463, allocations: 47.61 kB / 485 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004034/0.1467, allocations: 207.4 kB / 485.2 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002046/0.1469, allocations: 75.91 kB / 485.3 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004652/0.1474, allocations: 427.1 kB / 485.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000266/0.1476, allocations: 132.6 kB / 485.8 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001999/0.1478, allocations: 187.3 kB / 486 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000249/0.1481, allocations: 219.1 kB / 486.2 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.451e-05/0.1482, allocations: 24 kB / 486.2 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.148e-05/0.1482, allocations: 24 kB / 486.3 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.238e-05/0.1483, allocations: 71.69 kB / 486.3 MB, free: 432 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.1484, allocations: 121.5 kB / 486.5 MB, free: 304 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003815/0.1488, allocations: 406.8 kB / 486.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.1488, allocations: 0 / 486.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.1488, allocations: 0 / 486.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1488, allocations: 0 / 486.9 MB, free: 15.9 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.0009793/0.1498, allocations: 0.6781 MB / 487.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.1499, allocations: 8.031 kB / 487.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001039/0.15, allocations: 94.52 kB / 487.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.079e-05/0.1501, allocations: 51.44 kB / 487.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003575/0.1504, allocations: 321.2 kB / 488 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.863e-05/0.1505, allocations: 33 kB / 488 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.791e-05/0.1506, allocations: 51.91 kB / 488.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006372/0.1512, allocations: 430.5 kB / 488.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.98e-05/0.1512, allocations: 11.91 kB / 488.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.033e-05/0.1513, allocations: 20 kB / 488.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.1513, allocations: 12 kB / 488.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004879/0.1518, allocations: 308.5 kB / 488.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001705/0.1535, allocations: 1.161 MB / 490 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00071/0.1542, allocations: 477.2 kB / 490.5 MB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.225e-05/0.1543, allocations: 12.47 kB / 490.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.1543, allocations: 43.17 kB / 490.5 MB, free: 12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 4.017e-06/0.1543, allocations: 0 / 490.5 MB, free: 12 MB / 366.1 MB Notification: Performance of matching and sorting (n=74): time 0.002975/0.1573, allocations: 2.123 MB / 492.6 MB, free: 9.715 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.928e-05/0.1574, allocations: 85.67 kB / 492.7 MB, free: 9.609 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002383/0.1576, allocations: 250.9 kB / 493 MB, free: 9.352 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.454e-05/0.1577, allocations: 37.7 kB / 493 MB, free: 9.309 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000144/0.1578, allocations: 217 kB / 493.2 MB, free: 9.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001974/0.158, allocations: 272 kB / 493.5 MB, free: 8.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.262e-05/0.158, allocations: 16 kB / 493.5 MB, free: 8.805 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002181/0.1583, allocations: 362.7 kB / 493.9 MB, free: 8.441 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002462/0.1585, allocations: 153.9 kB / 494 MB, free: 8.293 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003347/0.1589, allocations: 268.8 kB / 494.3 MB, free: 7.996 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003525/0.1592, allocations: 199.2 kB / 494.5 MB, free: 7.801 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1592, allocations: 0 / 494.5 MB, free: 7.801 MB / 366.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.0007773/0.16, allocations: 0.5641 MB / 495 MB, free: 7.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.16, allocations: 8 kB / 495 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.1601, allocations: 4 kB / 495 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.1601, allocations: 4 kB / 495 MB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005691/0.1606, allocations: 179.8 kB / 495.2 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.594e-05/0.1607, allocations: 12.2 kB / 495.2 MB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000247/0.1609, allocations: 28 kB / 495.3 MB, free: 7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.533e-05/0.161, allocations: 20 kB / 495.3 MB, free: 6.98 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 97 * 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.0002224/0.1612, allocations: 185.6 kB / 495.5 MB, free: 6.789 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.338e-05/0.1613, allocations: 43.53 kB / 495.5 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001082/0.1614, allocations: 55.67 kB / 495.6 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.1614, allocations: 8 kB / 495.6 MB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/0.1614, allocations: 0 / 495.6 MB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.1615, allocations: 11.98 kB / 495.6 MB, free: 6.676 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001964/0.1634, allocations: 1.446 MB / 497 MB, free: 5.117 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.1634, allocations: 4 kB / 497 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005965/0.164, allocations: 167.8 kB / 497.2 MB, free: 4.949 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.109e-05/0.1641, allocations: 4 kB / 497.2 MB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.801e-05/0.1641, allocations: 19.98 kB / 497.2 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.826e-06/0.1641, allocations: 8 kB / 497.2 MB, free: 4.918 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.1641, allocations: 0 / 497.2 MB, free: 4.918 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.1654, allocations: 1.061 MB / 498.3 MB, free: 3.738 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.1656, allocations: 120.5 kB / 498.4 MB, free: 3.602 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.132e-05/0.1656, allocations: 16 kB / 498.4 MB, free: 3.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002575/0.1659, allocations: 19.98 kB / 498.4 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.313e-05/0.166, allocations: 56.27 kB / 498.5 MB, free: 3.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.159e-05/0.166, allocations: 23.94 kB / 498.5 MB, free: 3.488 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001731/0.1662, allocations: 174 kB / 498.7 MB, free: 3.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1662, allocations: 0 / 498.7 MB, free: 3.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005271/0.1667, allocations: 144 kB / 498.8 MB, free: 3.18 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (inertia6.phi,inertia6.w,relativeStates.phi_rel,relativeStates.w_rel,inertia4.phi,inertia4.w,inertia5.phi,inertia5.w,springDamper1.phi_rel,springDamper1.w_rel,springDamper2.phi_rel,springDamper2.w_rel,springDamper3.phi_rel,springDamper3.w_rel) * 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 (74): * Single equations (assignments): 74 * 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.002022/0.1688, allocations: 2.435 MB / 0.4895 GB, free: 0.6328 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007497/0.1695, allocations: 459.5 kB / 0.49 GB, free: 192 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1695, allocations: 0 / 0.49 GB, free: 192 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003288/0.1699, allocations: 230.2 kB / 0.4902 GB, free: 15.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006985/0.1706, allocations: 109 kB / 0.4903 GB, free: 15.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00554/0.1761, allocations: 5.115 MB / 0.4953 GB, free: 10.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005045/0.1767, allocations: 0.8643 MB / 0.4961 GB, free: 9.711 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002262/0.1769, allocations: 56.66 kB / 0.4962 GB, free: 9.652 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002548/0.1772, allocations: 159.4 kB / 0.4963 GB, free: 9.496 MB / 382.1 MB Notification: Performance of SimCode: time 1.272e-06/0.1772, allocations: 3.938 kB / 0.4963 GB, free: 9.492 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02421/0.2014, allocations: 9.014 MB / 0.5051 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001699/0.2016, allocations: 195.7 kB / 0.5053 GB, free: 488 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.055/2.257, allocations: 0 / 0.5053 GB, free: 488 kB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_InitializationConversion_SpringDamper_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_InitializationConversion_SpringDamper.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper_res.mat does not exist to compare? outputFormat=mat