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.0007989/0.0007989, allocations: 96.7 kB / 15.7 MB, free: 468 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.0008719/0.000872, allocations: 176.1 kB / 16.58 MB, free: 6.062 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.44/1.44, allocations: 205.4 MB / 222.8 MB, free: 5.66 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.3766/0.3766, allocations: 43.54 MB / 314.6 MB, free: 8.754 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.0005243/0.0005245, allocations: 16 kB / 384 MB, free: 7.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1274, allocations: 58.84 MB / 442.9 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.00604/0.1335, allocations: 4.973 MB / 447.8 MB, free: 7.965 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004833/0.1384, allocations: 2.156 MB / 450 MB, free: 5.801 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001547/0.1399, allocations: 39.75 kB / 450 MB, free: 5.762 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008433/0.1408, allocations: 166.6 kB / 450.2 MB, free: 5.598 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001061/0.1419, allocations: 142.8 kB / 450.3 MB, free: 5.457 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001646/0.1436, allocations: 299.4 kB / 450.6 MB, free: 5.164 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001674/0.1453, allocations: 0.9737 MB / 451.6 MB, free: 4.188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008656/0.1462, allocations: 433.9 kB / 452 MB, free: 3.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005227/0.1467, allocations: 258.8 kB / 452.3 MB, free: 3.488 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005877/0.1473, allocations: 294.3 kB / 452.6 MB, free: 3.199 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.1474, allocations: 32 kB / 452.6 MB, free: 3.168 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003668/0.1478, allocations: 79.92 kB / 452.7 MB, free: 3.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001933/0.148, allocations: 135.4 kB / 452.8 MB, free: 2.957 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003202/0.1483, allocations: 189.2 kB / 453 MB, free: 2.766 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001184/0.1495, allocations: 0.9274 MB / 453.9 MB, free: 1.836 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1496, allocations: 0 / 453.9 MB, free: 1.836 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1496, allocations: 0 / 453.9 MB, free: 1.836 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.131e-05/0.1496, allocations: 0 / 453.9 MB, free: 1.836 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.001489/0.1511, allocations: 0.9706 MB / 454.9 MB, free: 0.8164 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.1512, allocations: 12.03 kB / 454.9 MB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001472/0.1513, allocations: 135.7 kB / 455 MB, free: 0.6641 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000148/0.1515, allocations: 106.7 kB / 455.1 MB, free: 0.5586 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2468/0.3983, allocations: 0.5418 MB / 455.7 MB, free: 46.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001088/0.3985, allocations: 66.41 kB / 455.7 MB, free: 46.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002762/0.3988, allocations: 92.69 kB / 455.8 MB, free: 46.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001662/0.4004, allocations: 0.8906 MB / 456.7 MB, free: 45.87 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.406e-05/0.4005, allocations: 4.031 kB / 456.7 MB, free: 45.87 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.816e-05/0.4006, allocations: 38.09 kB / 456.8 MB, free: 45.87 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.4006, allocations: 24.06 kB / 456.8 MB, free: 45.87 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008282/0.4014, allocations: 0.5183 MB / 457.3 MB, free: 45.86 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003011/0.4044, allocations: 3.657 MB / 461 MB, free: 43.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004689/0.4049, allocations: 223.1 kB / 461.2 MB, free: 43.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.4051, allocations: 111.2 kB / 461.3 MB, free: 43.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001913/0.4053, allocations: 246 kB / 461.5 MB, free: 43.49 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.641e-05/0.4053, allocations: 33.81 kB / 461.6 MB, free: 43.45 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 2.585e-06/0.4053, allocations: 0 / 461.6 MB, free: 43.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.00219/0.4075, allocations: 1.31 MB / 462.9 MB, free: 42.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.4076, allocations: 56.38 kB / 462.9 MB, free: 42.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004109/0.408, allocations: 398.9 kB / 463.3 MB, free: 42.63 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.408, allocations: 33.17 kB / 463.3 MB, free: 42.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000261/0.4083, allocations: 466.2 kB / 463.8 MB, free: 42.33 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.067e-05/0.4084, allocations: 132.7 kB / 463.9 MB, free: 42.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.118e-05/0.4084, allocations: 11.94 kB / 463.9 MB, free: 42.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.657e-05/0.4085, allocations: 358.3 kB / 464.3 MB, free: 41.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00019/0.4087, allocations: 115.2 kB / 464.4 MB, free: 41.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002321/0.4089, allocations: 312.3 kB / 464.7 MB, free: 41.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000229/0.4092, allocations: 175.4 kB / 464.9 MB, free: 41.67 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.4092, allocations: 2.688 kB / 464.9 MB, free: 41.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0006323/0.4098, allocations: 0.5041 MB / 465.4 MB, free: 41.56 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.4099, allocations: 12.62 kB / 465.4 MB, free: 41.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.4099, allocations: 5.531 kB / 465.4 MB, free: 41.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001811/0.4101, allocations: 39.73 kB / 465.4 MB, free: 41.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004032/0.4105, allocations: 129.1 kB / 465.6 MB, free: 41.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003065/0.4108, allocations: 0.5561 MB / 466.1 MB, free: 41.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000192/0.411, allocations: 25.55 kB / 466.2 MB, free: 41.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.366e-05/0.4111, allocations: 31.28 kB / 466.2 MB, free: 41.01 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.0003111/0.4114, allocations: 224.6 kB / 466.4 MB, free: 40.89 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.202e-05/0.4114, allocations: 50.28 kB / 466.5 MB, free: 40.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006141/0.4121, allocations: 338.1 kB / 466.8 MB, free: 40.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.4121, allocations: 2.812 kB / 466.8 MB, free: 40.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.4121, allocations: 7.078 kB / 466.8 MB, free: 40.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.4121, allocations: 3.328 kB / 466.8 MB, free: 40.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001339/0.4134, allocations: 1.061 MB / 467.9 MB, free: 40.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.4135, allocations: 0 / 467.9 MB, free: 40.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003169/0.4138, allocations: 85.7 kB / 467.9 MB, free: 40.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001077/0.4139, allocations: 33.5 kB / 468 MB, free: 40.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.064e-05/0.4139, allocations: 6.812 kB / 468 MB, free: 40.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002144/0.4142, allocations: 0.5565 MB / 468.5 MB, free: 39.74 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.4142, allocations: 9.25 kB / 468.5 MB, free: 39.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006322/0.4148, allocations: 0.562 MB / 469.1 MB, free: 39.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.851e-05/0.4149, allocations: 113.5 kB / 469.2 MB, free: 39.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.559e-05/0.4149, allocations: 10.33 kB / 469.2 MB, free: 39.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.4151, allocations: 9.969 kB / 469.2 MB, free: 39.26 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.773e-05/0.4151, allocations: 28.22 kB / 469.3 MB, free: 39.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.01e-05/0.4152, allocations: 12.5 kB / 469.3 MB, free: 39.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002114/0.4154, allocations: 267.4 kB / 469.5 MB, free: 39.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4154, allocations: 0 / 469.5 MB, free: 39.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004942/0.4159, allocations: 126.6 kB / 469.7 MB, free: 39.1 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.0007945/0.4167, allocations: 1.116 MB / 470.8 MB, free: 38.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004975/0.4172, allocations: 335.2 kB / 471.1 MB, free: 38.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4172, allocations: 4.062 kB / 471.1 MB, free: 38.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002052/0.4174, allocations: 141.5 kB / 471.2 MB, free: 38.06 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004657/0.4179, allocations: 67.33 kB / 471.3 MB, free: 38.03 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004117/0.422, allocations: 3.795 MB / 475.1 MB, free: 35.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003637/0.4224, allocations: 0.9563 MB / 476.1 MB, free: 34.95 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001707/0.4226, allocations: 58.38 kB / 476.1 MB, free: 34.94 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002652/0.4229, allocations: 290.7 kB / 476.4 MB, free: 34.71 MB / 382.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4229, allocations: 384 / 476.4 MB, free: 34.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0222/0.4451, allocations: 9.308 MB / 485.7 MB, free: 33.79 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001825/0.4453, allocations: 209.6 kB / 485.9 MB, free: 33.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.826/2.271, allocations: 3.938 kB / 485.9 MB, free: 33.55 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