Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs",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.0008781/0.0008781, allocations: 94.95 kB / 16.98 MB, free: 6.398 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.0008804/0.0008805, allocations: 183.8 kB / 17.87 MB, free: 5.957 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.486/1.486, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2317/0.2317, allocations: 44.23 MB / 337.1 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003246/0.0003248, allocations: 8 kB / 409.6 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1273, allocations: 61.93 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.005739/0.1331, allocations: 4.685 MB / 476.2 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004229/0.1374, allocations: 2.179 MB / 478.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00123/0.1386, allocations: 39.75 kB / 478.4 MB, free: 6.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005574/0.1392, allocations: 166.8 kB / 478.6 MB, free: 6.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00102/0.1402, allocations: 315 kB / 478.9 MB, free: 6.234 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001437/0.1417, allocations: 407.2 kB / 479.3 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00107/0.1428, allocations: 0.7292 MB / 480 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005925/0.1434, allocations: 425.9 kB / 480.5 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003256/0.1437, allocations: 250.9 kB / 480.7 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003161/0.144, allocations: 282.4 kB / 481 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.763e-05/0.1441, allocations: 36 kB / 481 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002142/0.1443, allocations: 75.97 kB / 481.1 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.1445, allocations: 131.3 kB / 481.2 MB, free: 3.914 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.1446, allocations: 197.2 kB / 481.4 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008707/0.1455, allocations: 0.9274 MB / 482.3 MB, free: 2.785 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.1455, allocations: 0 / 482.3 MB, free: 2.785 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.1455, allocations: 0 / 482.3 MB, free: 2.785 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.1456, allocations: 0 / 482.3 MB, free: 2.785 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001538/0.1471, allocations: 0.9628 MB / 483.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.1471, allocations: 8.031 kB / 483.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001585/0.1473, allocations: 147.7 kB / 483.4 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.1474, allocations: 98.78 kB / 483.5 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007536/0.1482, allocations: 0.5509 MB / 484.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.556e-05/0.1483, allocations: 77.94 kB / 484.2 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001079/0.1484, allocations: 84 kB / 484.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.1498, allocations: 0.8775 MB / 485.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.612e-05/0.1498, allocations: 11.84 kB / 485.1 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.343e-05/0.1499, allocations: 36 kB / 485.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.144e-05/0.1499, allocations: 24 kB / 485.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009654/0.1509, allocations: 0.5229 MB / 485.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003667/0.1546, allocations: 3.647 MB / 489.4 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005365/0.1551, allocations: 223.2 kB / 489.6 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002665/0.1554, allocations: 259.2 kB / 489.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.659e-05/0.1555, allocations: 30.56 kB / 489.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 3.256e-06/0.1555, allocations: 0 / 489.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002448/0.1579, allocations: 1.3 MB / 491.2 MB, free: 9.449 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/0.158, allocations: 59.39 kB / 491.2 MB, free: 9.379 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004381/0.1584, allocations: 393.8 kB / 491.6 MB, free: 8.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.35e-05/0.1585, allocations: 29.7 kB / 491.6 MB, free: 8.945 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003237/0.1588, allocations: 474.1 kB / 492.1 MB, free: 8.473 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.1589, allocations: 138 kB / 492.2 MB, free: 8.336 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.943e-05/0.1589, allocations: 12 kB / 492.3 MB, free: 8.324 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.1591, allocations: 362.7 kB / 492.6 MB, free: 7.961 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002054/0.1593, allocations: 113.1 kB / 492.7 MB, free: 7.852 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003799/0.1597, allocations: 310.2 kB / 493 MB, free: 7.461 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002696/0.16, allocations: 160.7 kB / 493.2 MB, free: 7.305 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.16, allocations: 0 / 493.2 MB, free: 7.305 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007667/0.1608, allocations: 0.5163 MB / 493.7 MB, free: 6.777 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.1608, allocations: 8.844 kB / 493.7 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.1608, allocations: 7.984 kB / 493.7 MB, free: 6.762 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001803/0.161, allocations: 40.84 kB / 493.7 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003916/0.1614, allocations: 127.8 kB / 493.9 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003711/0.1618, allocations: 0.5562 MB / 494.4 MB, free: 6.012 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002047/0.162, allocations: 19.94 kB / 494.4 MB, free: 5.992 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.383e-05/0.162, allocations: 32 kB / 494.5 MB, free: 5.961 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000355/0.1624, allocations: 230.2 kB / 494.7 MB, free: 5.727 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.071e-05/0.1625, allocations: 47.44 kB / 494.8 MB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006009/0.1631, allocations: 335.1 kB / 495.1 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.922e-06/0.1631, allocations: 7.938 kB / 495.1 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1631, allocations: 4 kB / 495.1 MB, free: 5.332 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.1631, allocations: 0 / 495.1 MB, free: 5.332 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001483/0.1646, allocations: 1.061 MB / 496.2 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.1646, allocations: 0 / 496.2 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003464/0.165, allocations: 79.91 kB / 496.2 MB, free: 4.117 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001319/0.1651, allocations: 28.84 kB / 496.3 MB, free: 4.086 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.78e-05/0.1652, allocations: 11.98 kB / 496.3 MB, free: 4.074 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003744/0.1656, allocations: 0.5486 MB / 496.8 MB, free: 3.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.1656, allocations: 7.969 kB / 496.8 MB, free: 3.492 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008217/0.1664, allocations: 0.6146 MB / 497.4 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001282/0.1665, allocations: 124.4 kB / 497.6 MB, free: 2.668 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.098e-05/0.1666, allocations: 15.94 kB / 497.6 MB, free: 2.652 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001504/0.1668, allocations: 8 kB / 497.6 MB, free: 2.645 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.843e-05/0.1668, allocations: 27.92 kB / 497.6 MB, free: 2.617 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.183e-05/0.1669, allocations: 8 kB / 497.6 MB, free: 2.609 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003508/0.1672, allocations: 267.1 kB / 497.9 MB, free: 2.352 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1672, allocations: 0 / 497.9 MB, free: 2.352 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000587/0.1678, allocations: 132 kB / 498 MB, free: 2.223 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * Single equations (assignments): 32 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001169/0.169, allocations: 1.52 MB / 499.5 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005892/0.1696, allocations: 326.7 kB / 499.8 MB, free: 332 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.1696, allocations: 0 / 499.8 MB, free: 332 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002451/0.1699, allocations: 152.1 kB / 500 MB, free: 180 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000461/0.1703, allocations: 69.97 kB / 0.4883 GB, free: 112 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007657/0.178, allocations: 7.834 MB / 0.496 GB, free: 8.078 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007721/0.1788, allocations: 0.972 MB / 0.4969 GB, free: 7.082 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001964/0.179, allocations: 60.48 kB / 0.497 GB, free: 7.023 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003858/0.1794, allocations: 291.3 kB / 0.4973 GB, free: 6.738 MB / 382.1 MB Notification: Performance of SimCode: time 8.52e-07/0.1794, allocations: 3.938 kB / 0.4973 GB, free: 6.734 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2367/0.4161, allocations: 9.291 MB / 0.5064 GB, free: 47.4 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001823/0.4163, allocations: 203.7 kB / 0.5066 GB, free: 47.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.881/2.297, allocations: 7.688 kB / 0.5066 GB, free: 47.16 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat