Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.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.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001053/0.001053, allocations: 95.14 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001065/0.001066, allocations: 199 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2374/0.2374, allocations: 45.92 MB / 344 MB, free: 12.1 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003184/0.0003185, allocations: 11.98 kB / 418 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1407, allocations: 63.46 MB / 481.5 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.005661/0.1464, allocations: 4.713 MB / 486.2 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004149/0.1506, allocations: 2.221 MB / 488.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001019/0.1517, allocations: 31.81 kB / 488.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004953/0.1522, allocations: 170.7 kB / 488.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008219/0.153, allocations: 319 kB / 489 MB, free: 13.81 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001172/0.1542, allocations: 399.2 kB / 489.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00114/0.1553, allocations: 0.7256 MB / 490.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005815/0.1559, allocations: 433.9 kB / 490.5 MB, free: 12.26 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003691/0.1563, allocations: 254.9 kB / 490.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003085/0.1566, allocations: 286.4 kB / 491 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.838e-05/0.1567, allocations: 36 kB / 491.1 MB, free: 11.69 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002064/0.1569, allocations: 79.86 kB / 491.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.157, allocations: 135.5 kB / 491.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001386/0.1572, allocations: 185.2 kB / 491.4 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007826/0.158, allocations: 0.9351 MB / 492.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.158, allocations: 0 / 492.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.158, allocations: 0 / 492.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.158, allocations: 4 kB / 492.4 MB, free: 10.35 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001322/0.1593, allocations: 0.9628 MB / 493.3 MB, free: 9.336 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.1594, allocations: 8.031 kB / 493.4 MB, free: 9.328 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001452/0.1595, allocations: 143.7 kB / 493.5 MB, free: 9.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002413/0.1598, allocations: 114.7 kB / 493.6 MB, free: 9.066 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007092/0.1605, allocations: 0.551 MB / 494.2 MB, free: 8.473 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.623e-05/0.1606, allocations: 70 kB / 494.2 MB, free: 8.406 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001243/0.1607, allocations: 88 kB / 494.3 MB, free: 8.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.1622, allocations: 0.8775 MB / 495.2 MB, free: 7.379 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.629e-05/0.1623, allocations: 11.89 kB / 495.2 MB, free: 7.367 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.849e-05/0.1623, allocations: 40 kB / 495.2 MB, free: 7.328 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.126e-05/0.1624, allocations: 24 kB / 495.3 MB, free: 7.305 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.1634, allocations: 0.5268 MB / 495.8 MB, free: 6.777 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004002/0.1674, allocations: 3.647 MB / 499.4 MB, free: 2.977 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005408/0.168, allocations: 223.2 kB / 499.7 MB, free: 2.746 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002452/0.1683, allocations: 247.3 kB / 499.9 MB, free: 2.449 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.569e-05/0.1683, allocations: 39.06 kB / 499.9 MB, free: 2.402 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.994e-06/0.1683, allocations: 0 / 499.9 MB, free: 2.402 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002808/0.1711, allocations: 1.304 MB / 0.4895 GB, free: 1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.994e-05/0.1712, allocations: 55.41 kB / 0.4895 GB, free: 0.9336 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000433/0.1716, allocations: 397.8 kB / 0.4899 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.806e-05/0.1717, allocations: 33.7 kB / 0.49 GB, free: 0.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000294/0.172, allocations: 462.1 kB / 0.4904 GB, free: 40 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/0.1721, allocations: 142 kB / 0.4905 GB, free: 15.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.925e-05/0.1721, allocations: 15.94 kB / 0.4906 GB, free: 15.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.1723, allocations: 366.7 kB / 0.4909 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001991/0.1725, allocations: 113.1 kB / 0.491 GB, free: 15.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003232/0.1728, allocations: 298.3 kB / 0.4913 GB, free: 15.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002961/0.1732, allocations: 172.7 kB / 0.4915 GB, free: 14.86 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1732, allocations: 0 / 0.4915 GB, free: 14.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008209/0.174, allocations: 0.5086 MB / 0.492 GB, free: 14.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.837e-05/0.174, allocations: 8 kB / 0.492 GB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.986e-05/0.1741, allocations: 4 kB / 0.492 GB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002859/0.1744, allocations: 41.58 kB / 0.492 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004613/0.1748, allocations: 135.8 kB / 0.4921 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004707/0.1753, allocations: 0.5563 MB / 0.4927 GB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002156/0.1755, allocations: 16 kB / 0.4927 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.458e-05/0.1756, allocations: 31.98 kB / 0.4927 GB, free: 13.52 MB / 382.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.0004447/0.1761, allocations: 221.7 kB / 0.4929 GB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.406e-05/0.1762, allocations: 63.44 kB / 0.493 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006622/0.1768, allocations: 330.8 kB / 0.4933 GB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.1769, allocations: 4 kB / 0.4933 GB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.1769, allocations: 0 / 0.4933 GB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.988e-06/0.1769, allocations: 3.984 kB / 0.4933 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001837/0.1787, allocations: 1.054 MB / 0.4943 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.1787, allocations: 4.031 kB / 0.4944 GB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003503/0.1791, allocations: 83.89 kB / 0.4944 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001643/0.1793, allocations: 28.84 kB / 0.4945 GB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.814e-05/0.1793, allocations: 15.94 kB / 0.4945 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003775/0.1797, allocations: 0.5485 MB / 0.495 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.1797, allocations: 8.016 kB / 0.495 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008368/0.1806, allocations: 0.6267 MB / 0.4956 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001108/0.1807, allocations: 120.4 kB / 0.4957 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.91e-05/0.1807, allocations: 8 kB / 0.4958 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.1809, allocations: 11.98 kB / 0.4958 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.027e-05/0.181, allocations: 27.97 kB / 0.4958 GB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.342e-05/0.181, allocations: 12 kB / 0.4958 GB, free: 10.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003056/0.1813, allocations: 267.1 kB / 0.4961 GB, free: 9.898 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1813, allocations: 0 / 0.4961 GB, free: 9.898 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005922/0.1819, allocations: 128 kB / 0.4962 GB, free: 9.773 MB / 382.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.001419/0.1833, allocations: 1.515 MB / 0.4977 GB, free: 8.191 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006288/0.184, allocations: 332 kB / 0.498 GB, free: 7.867 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.184, allocations: 1.5 kB / 0.498 GB, free: 7.867 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002446/0.1843, allocations: 144.1 kB / 0.4981 GB, free: 7.727 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004144/0.1847, allocations: 60.28 kB / 0.4982 GB, free: 7.672 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2416/0.4263, allocations: 7.832 MB / 0.5058 GB, free: 41.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006209/0.427, allocations: 0.9744 MB / 0.5068 GB, free: 40.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002833/0.4272, allocations: 61.59 kB / 0.5068 GB, free: 40.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004875/0.4277, allocations: 295.6 kB / 0.5071 GB, free: 40.95 MB / 382.1 MB Notification: Performance of SimCode: time 1.343e-06/0.4278, allocations: 0 / 0.5071 GB, free: 40.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02762/0.4554, allocations: 9.298 MB / 0.5162 GB, free: 39.34 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001504/0.4556, allocations: 209.1 kB / 0.5164 GB, free: 39.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.909/2.365, allocations: 0 / 0.5164 GB, free: 39.09 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat