Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.GenerationOfFMUs,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_3_2_3_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.001001/0.001001, 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.001359/0.001359, allocations: 178.7 kB / 16.57 MB, free: 6.387 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.888/1.888, allocations: 205.4 MB / 222.7 MB, free: 5.676 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.4522/0.4522, allocations: 43.55 MB / 314.5 MB, free: 9.023 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.000549/0.0005493, allocations: 14.97 kB / 384 MB, free: 8.156 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.152/0.1526, allocations: 58.85 MB / 442.8 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.005656/0.1583, allocations: 4.705 MB / 447.5 MB, free: 8.469 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004168/0.1625, allocations: 2.222 MB / 449.8 MB, free: 6.238 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001575/0.1641, allocations: 31.81 kB / 449.8 MB, free: 6.207 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007644/0.1649, allocations: 170.7 kB / 450 MB, free: 6.039 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001576/0.1665, allocations: 319 kB / 450.3 MB, free: 5.727 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001885/0.1684, allocations: 395.2 kB / 450.7 MB, free: 5.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001699/0.1701, allocations: 0.7295 MB / 451.4 MB, free: 4.609 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007491/0.1709, allocations: 433.9 kB / 451.8 MB, free: 4.164 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004621/0.1713, allocations: 250.8 kB / 452.1 MB, free: 3.918 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003657/0.1717, allocations: 286.4 kB / 452.3 MB, free: 3.637 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.043e-05/0.1718, allocations: 36 kB / 452.4 MB, free: 3.602 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002315/0.172, allocations: 75.91 kB / 452.4 MB, free: 3.527 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001324/0.1722, allocations: 127.5 kB / 452.6 MB, free: 3.402 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000175/0.1723, allocations: 189.2 kB / 452.8 MB, free: 3.211 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009771/0.1733, allocations: 0.9312 MB / 453.7 MB, free: 2.277 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1733, allocations: 0 / 453.7 MB, free: 2.277 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.1733, allocations: 4 kB / 453.7 MB, free: 2.273 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.1734, allocations: 3.938 kB / 453.7 MB, free: 2.27 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001498/0.1749, allocations: 0.959 MB / 454.7 MB, free: 1.262 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.1749, allocations: 12.03 kB / 454.7 MB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001777/0.1751, allocations: 147.7 kB / 454.8 MB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001452/0.1753, allocations: 102.7 kB / 454.9 MB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007457/0.176, allocations: 0.5432 MB / 455.5 MB, free: 424 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.96e-05/0.1761, allocations: 66 kB / 455.5 MB, free: 356 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.1762, allocations: 99.89 kB / 455.6 MB, free: 256 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2709/0.4471, allocations: 0.8747 MB / 456.5 MB, free: 46.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.802e-05/0.4472, allocations: 6.719 kB / 456.5 MB, free: 46.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.066e-05/0.4473, allocations: 37.31 kB / 456.5 MB, free: 46.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.919e-05/0.4473, allocations: 22.88 kB / 456.6 MB, free: 46.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009237/0.4482, allocations: 0.528 MB / 457.1 MB, free: 46.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003336/0.4516, allocations: 3.641 MB / 460.7 MB, free: 44.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005589/0.4521, allocations: 225.6 kB / 460.9 MB, free: 44.12 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001945/0.4523, allocations: 246 kB / 461.2 MB, free: 43.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.017e-05/0.4524, allocations: 40.28 kB / 461.2 MB, free: 43.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 2.404e-06/0.4524, allocations: 0 / 461.2 MB, free: 43.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.002187/0.4546, allocations: 1.307 MB / 462.5 MB, free: 43.15 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.703e-05/0.4546, allocations: 58.34 kB / 462.6 MB, free: 43.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004437/0.4551, allocations: 400.9 kB / 463 MB, free: 42.97 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.4551, allocations: 32.14 kB / 463 MB, free: 42.94 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002485/0.4554, allocations: 466.3 kB / 463.5 MB, free: 42.67 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.619e-05/0.4554, allocations: 132.6 kB / 463.6 MB, free: 42.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.839e-05/0.4555, allocations: 15.5 kB / 463.6 MB, free: 42.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.4556, allocations: 361.1 kB / 464 MB, free: 42.28 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002064/0.4558, allocations: 108.7 kB / 464.1 MB, free: 42.28 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003037/0.4561, allocations: 310.5 kB / 464.4 MB, free: 42.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002929/0.4564, allocations: 164.6 kB / 464.5 MB, free: 42.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.4564, allocations: 0 / 464.5 MB, free: 42.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007345/0.4572, allocations: 0.5174 MB / 465.1 MB, free: 41.91 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.4572, allocations: 12.17 kB / 465.1 MB, free: 41.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.4572, allocations: 5.906 kB / 465.1 MB, free: 41.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001775/0.4574, allocations: 34.91 kB / 465.1 MB, free: 41.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003551/0.4578, allocations: 129.9 kB / 465.2 MB, free: 41.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000286/0.4581, allocations: 0.5503 MB / 465.8 MB, free: 41.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001948/0.4583, allocations: 27.61 kB / 465.8 MB, free: 41.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.15e-05/0.4583, allocations: 30.64 kB / 465.8 MB, free: 41.37 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.0002812/0.4586, allocations: 237.3 kB / 466.1 MB, free: 41.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.341e-05/0.4587, allocations: 50.34 kB / 466.1 MB, free: 41.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005696/0.4593, allocations: 324 kB / 466.4 MB, free: 41.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.4593, allocations: 5.656 kB / 466.4 MB, free: 41.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.4593, allocations: 0 / 466.4 MB, free: 41.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.4593, allocations: 3.234 kB / 466.4 MB, free: 41.15 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001332/0.4606, allocations: 1.065 MB / 467.5 MB, free: 40.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.4606, allocations: 2.906 kB / 467.5 MB, free: 40.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003229/0.461, allocations: 73.98 kB / 467.6 MB, free: 40.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001116/0.4611, allocations: 36.95 kB / 467.6 MB, free: 40.76 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.813e-05/0.4611, allocations: 18.83 kB / 467.6 MB, free: 40.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002227/0.4614, allocations: 0.5452 MB / 468.2 MB, free: 40.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.4614, allocations: 2.906 kB / 468.2 MB, free: 40.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006835/0.4621, allocations: 0.6273 MB / 468.8 MB, free: 39.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.231e-05/0.4621, allocations: 115 kB / 468.9 MB, free: 39.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.876e-05/0.4622, allocations: 10.34 kB / 468.9 MB, free: 39.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000147/0.4624, allocations: 9.844 kB / 468.9 MB, free: 39.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.691e-05/0.4624, allocations: 23.36 kB / 469 MB, free: 39.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.327e-05/0.4624, allocations: 14.83 kB / 469 MB, free: 39.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002354/0.4627, allocations: 262 kB / 469.2 MB, free: 39.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4627, allocations: 7.031 kB / 469.2 MB, free: 39.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005563/0.4633, allocations: 128 kB / 469.4 MB, free: 39.52 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.0009675/0.4642, allocations: 1.523 MB / 470.9 MB, free: 38.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005695/0.4648, allocations: 332.5 kB / 471.2 MB, free: 38.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.4648, allocations: 0 / 471.2 MB, free: 38.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000229/0.4651, allocations: 145.8 kB / 471.4 MB, free: 38.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004177/0.4655, allocations: 65.42 kB / 471.4 MB, free: 38.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005169/0.4707, allocations: 7.838 MB / 479.3 MB, free: 31.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004325/0.4711, allocations: 0.9759 MB / 480.2 MB, free: 30.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001894/0.4713, allocations: 60.33 kB / 480.3 MB, free: 30.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002655/0.4716, allocations: 291 kB / 480.6 MB, free: 30.66 MB / 382.1 MB Notification: Performance of SimCode: time 1.373e-06/0.4716, allocations: 4 kB / 480.6 MB, free: 30.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02199/0.4936, allocations: 9.301 MB / 489.9 MB, free: 29.73 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001734/0.4938, allocations: 204.1 kB / 490.1 MB, free: 29.49 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.891/2.385, allocations: 0 / 490.1 MB, free: 29.49 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat