Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2",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.001102/0.00111, allocations: 96.28 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001794/0.001794, allocations: 176.9 kB / 16.57 MB, free: 6.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.746/1.746, allocations: 205.4 MB / 222.7 MB, free: 5.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4019/0.4019, allocations: 43.55 MB / 314.5 MB, free: 8.836 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006203/0.0006207, allocations: 12 kB / 384 MB, free: 7.945 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1429/0.1435, allocations: 58.86 MB / 442.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003469/0.147, allocations: 2.254 MB / 445.1 MB, free: 10.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001966/0.1491, allocations: 0.7414 MB / 445.8 MB, free: 9.965 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003949/0.1495, allocations: 11.94 kB / 445.9 MB, free: 9.953 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.1497, allocations: 35.69 kB / 445.9 MB, free: 9.918 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004914/0.1502, allocations: 135.6 kB / 446 MB, free: 9.785 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003468/0.1505, allocations: 63.92 kB / 446.1 MB, free: 9.723 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006136/0.1512, allocations: 295.4 kB / 446.4 MB, free: 9.434 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002587/0.1514, allocations: 108.2 kB / 446.5 MB, free: 9.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003102/0.1517, allocations: 147.5 kB / 446.6 MB, free: 9.176 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000337/0.1521, allocations: 155.3 kB / 446.8 MB, free: 9.023 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.142e-05/0.1522, allocations: 20 kB / 446.8 MB, free: 9.004 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.981e-05/0.1523, allocations: 20 kB / 446.8 MB, free: 8.984 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.211e-05/0.1523, allocations: 55.77 kB / 446.9 MB, free: 8.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001148/0.1524, allocations: 101.5 kB / 447 MB, free: 8.824 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003382/0.1528, allocations: 311.4 kB / 447.3 MB, free: 8.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.1528, allocations: 3.938 kB / 447.3 MB, free: 8.516 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1528, allocations: 0 / 447.3 MB, free: 8.516 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.457e-05/0.1528, allocations: 0 / 447.3 MB, free: 8.516 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001066/0.1539, allocations: 0.5849 MB / 447.9 MB, free: 7.883 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.154, allocations: 12.03 kB / 447.9 MB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001161/0.1541, allocations: 70.53 kB / 447.9 MB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.57e-05/0.1542, allocations: 39.53 kB / 448 MB, free: 7.754 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004093/0.1546, allocations: 279.2 kB / 448.3 MB, free: 7.441 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.304e-05/0.1547, allocations: 25 kB / 448.3 MB, free: 7.418 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.213e-05/0.1547, allocations: 43.91 kB / 448.3 MB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007183/0.1555, allocations: 390.1 kB / 448.7 MB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.034e-05/0.1555, allocations: 11.94 kB / 448.7 MB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.817e-05/0.1556, allocations: 16 kB / 448.7 MB, free: 6.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.652e-05/0.1556, allocations: 12 kB / 448.7 MB, free: 6.918 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004993/0.1561, allocations: 223.7 kB / 449 MB, free: 6.699 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002544/0.1586, allocations: 1.723 MB / 450.7 MB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004704/0.1591, allocations: 262.4 kB / 450.9 MB, free: 4.551 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.937e-05/0.1592, allocations: 7.938 kB / 450.9 MB, free: 4.543 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.279e-05/0.1592, allocations: 42.56 kB / 451 MB, free: 4.492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.884e-06/0.1592, allocations: 0 / 451 MB, free: 4.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007391/0.16, allocations: 281.7 kB / 451.3 MB, free: 4.211 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.1601, allocations: 217.5 kB / 451.5 MB, free: 3.949 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002854/0.1604, allocations: 274.8 kB / 451.7 MB, free: 3.676 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.1604, allocations: 33.64 kB / 451.8 MB, free: 3.637 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001697/0.1606, allocations: 239.4 kB / 452 MB, free: 3.398 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.1607, allocations: 118.4 kB / 452.1 MB, free: 3.281 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.646e-05/0.1607, allocations: 8 kB / 452.1 MB, free: 3.273 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001947/0.1609, allocations: 350.8 kB / 452.5 MB, free: 2.922 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002181/0.1612, allocations: 97.27 kB / 452.6 MB, free: 2.828 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004446/0.1616, allocations: 432.8 kB / 453 MB, free: 2.246 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003015/0.1619, allocations: 163.8 kB / 453.2 MB, free: 2.086 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.1619, allocations: 4 kB / 453.2 MB, free: 2.082 MB / 382.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009023/0.1629, allocations: 0.5286 MB / 453.7 MB, free: 1.547 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/0.1629, allocations: 8 kB / 453.7 MB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.121e-05/0.1629, allocations: 19.88 kB / 453.7 MB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.191e-05/0.163, allocations: 16 kB / 453.7 MB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004466/0.1634, allocations: 147.8 kB / 453.9 MB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.557e-05/0.1634, allocations: 23.88 kB / 453.9 MB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003485/0.1638, allocations: 83.53 kB / 454 MB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.473e-05/0.1639, allocations: 35.98 kB / 454 MB, free: 1.219 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * 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.0001998/0.1641, allocations: 177.6 kB / 454.2 MB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001587/0.1642, allocations: 27.72 kB / 454.2 MB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.99e-05/0.1643, allocations: 33.78 kB / 454.2 MB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.1643, allocations: 4 kB / 454.2 MB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.1643, allocations: 4 kB / 454.3 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.797e-06/0.1644, allocations: 4.547 kB / 454.3 MB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001313/0.1657, allocations: 0.6552 MB / 454.9 MB, free: 248 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/0.1657, allocations: 4 kB / 454.9 MB, free: 244 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004288/0.1661, allocations: 87.89 kB / 455 MB, free: 156 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/0.1662, allocations: 4 kB / 455 MB, free: 152 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.089e-05/0.1662, allocations: 15.98 kB / 455 MB, free: 136 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.189e-06/0.1662, allocations: 8.062 kB / 455 MB, free: 128 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.1662, allocations: 3.953 kB / 455 MB, free: 124 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2586/0.4248, allocations: 0.9315 MB / 456 MB, free: 44.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.425, allocations: 107.6 kB / 456.1 MB, free: 44.49 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.309e-05/0.4251, allocations: 13.69 kB / 456.1 MB, free: 44.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004169/0.4255, allocations: 8.594 kB / 456.1 MB, free: 44.49 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.207e-05/0.4256, allocations: 29.58 kB / 456.1 MB, free: 44.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.4256, allocations: 12.72 kB / 456.1 MB, free: 44.49 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001608/0.4257, allocations: 179.3 kB / 456.3 MB, free: 44.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4258, allocations: 3.844 kB / 456.3 MB, free: 44.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008174/0.4266, allocations: 104.3 kB / 456.4 MB, free: 44.41 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * 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 (26): * Single equations (assignments): 26 * 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.0008688/0.4275, allocations: 2.026 MB / 458.4 MB, free: 42.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005273/0.428, allocations: 297.6 kB / 458.7 MB, free: 42.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.428, allocations: 1.75 kB / 458.7 MB, free: 42.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001504/0.4282, allocations: 96.75 kB / 458.8 MB, free: 42.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006686/0.4288, allocations: 50.39 kB / 458.9 MB, free: 42.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005196/0.434, allocations: 10.92 MB / 469.8 MB, free: 32.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000273/0.4343, allocations: 0.8042 MB / 470.6 MB, free: 32.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001875/0.4345, allocations: 44.55 kB / 470.6 MB, free: 32.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.4347, allocations: 115.1 kB / 470.8 MB, free: 32.2 MB / 382.1 MB Notification: Performance of SimCode: time 1.353e-06/0.4347, allocations: 0 / 470.8 MB, free: 32.2 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01633/0.451, allocations: 5.944 MB / 476.7 MB, free: 31.67 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001467/0.4512, allocations: 188.4 kB / 476.9 MB, free: 31.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.799/2.25, allocations: 0 / 476.9 MB, free: 31.43 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat does not exist to compare? outputFormat=mat