Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine.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/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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(PlanarMechanics.Examples.PistonEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine",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.001482/0.001482, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001793/0.001793, allocations: 194.5 kB / 16.25 MB, free: 6.617 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.327/1.327, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1558/0.1558, allocations: 9.104 MB / 299.2 MB, free: 1.738 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 63.91 kB / 361.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1016, allocations: 51.44 MB / 413 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.2069/0.3085, allocations: 39.68 MB / 452.6 MB, free: 20.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01693/0.3255, allocations: 8.382 MB / 461 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008821/0.3344, allocations: 152.8 kB / 461.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001198/0.3356, allocations: 347.1 kB / 461.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003529/0.3392, allocations: 1.412 MB / 462.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005171/0.3397, allocations: 160.8 kB / 463.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002696/0.3424, allocations: 2.868 MB / 466 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001105/0.3436, allocations: 1.102 MB / 467.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009636/0.3445, allocations: 1.029 MB / 468.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001408/0.3459, allocations: 1.583 MB / 469.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003332/0.3463, allocations: 258.2 kB / 469.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001162/0.3475, allocations: 0.8724 MB / 470.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008078/0.3483, allocations: 1.364 MB / 472.2 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001062/0.3494, allocations: 1.778 MB / 473.9 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004814/0.3542, allocations: 5.232 MB / 479.2 MB, free: 6.477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.3542, allocations: 0 / 479.2 MB, free: 6.477 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3542, allocations: 5.594 kB / 479.2 MB, free: 6.473 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001291/0.3543, allocations: 0 / 479.2 MB, free: 6.473 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01407/0.3684, allocations: 5.168 MB / 484.3 MB, free: 4.207 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.3685, allocations: 9.625 kB / 484.3 MB, free: 4.207 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001114/0.3696, allocations: 0.6033 MB / 485 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006974/0.3766, allocations: 1.816 MB / 486.8 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003416/0.38, allocations: 1.505 MB / 488.3 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001587/0.3802, allocations: 174.3 kB / 488.4 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007101/0.3809, allocations: 226.3 kB / 488.7 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01577/0.3967, allocations: 8.954 MB / 497.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.565e-05/0.3969, allocations: 32.97 kB / 497.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003821/0.3973, allocations: 105.2 kB / 497.8 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003186/0.4005, allocations: 2.015 MB / 499.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01582/0.4163, allocations: 7.967 MB / 0.4958 GB, free: 5.398 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04001/0.4563, allocations: 28.56 MB / 0.5237 GB, free: 8.242 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007252/0.4636, allocations: 2.817 MB / 0.5265 GB, free: 5.316 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001505/0.4652, allocations: 0.9863 MB / 0.5274 GB, free: 4.328 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00916/0.4743, allocations: 6.469 MB / 0.5338 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.233e-05/0.4744, allocations: 51.88 kB / 0.5338 GB, free: 13.17 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 3.938e-06/0.4744, allocations: 0 / 0.5338 GB, free: 13.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=193): time 0.017/0.4915, allocations: 6.474 MB / 0.5401 GB, free: 6.676 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.4915, allocations: 69.41 kB / 0.5402 GB, free: 6.594 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004684/0.4962, allocations: 3.035 MB / 0.5432 GB, free: 3.547 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002869/0.4966, allocations: 53.7 kB / 0.5432 GB, free: 3.488 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00157/0.4981, allocations: 2.354 MB / 0.5455 GB, free: 1.102 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008247/0.499, allocations: 0.7053 MB / 0.5462 GB, free: 396 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001409/0.5004, allocations: 0.929 MB / 0.5471 GB, free: 15.44 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.347e-05/0.5005, allocations: 309.1 kB / 0.5474 GB, free: 15.14 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00249/0.503, allocations: 1.508 MB / 0.5489 GB, free: 13.62 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004308/0.5073, allocations: 4.086 MB / 0.5529 GB, free: 8.258 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007598/0.515, allocations: 6.031 MB / 0.5588 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.071e-05/0.5151, allocations: 28 kB / 0.5588 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01215/0.5272, allocations: 5.974 MB / 0.5646 GB, free: 10.96 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.087e-05/0.5274, allocations: 44 kB / 0.5647 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.654e-05/0.5274, allocations: 88 kB / 0.5647 GB, free: 10.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001564/0.529, allocations: 0.6194 MB / 0.5653 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003022/0.5321, allocations: 1.014 MB / 0.5663 GB, free: 9.184 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1986/0.7306, allocations: 9.244 MB / 0.5754 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003697/0.7344, allocations: 240 kB / 0.5756 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004945/0.7349, allocations: 280.5 kB / 0.5759 GB, free: 117.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 410 * Number of states: 0 () * Number of discrete variables: 24 (revolutePiston.cylinderColor[3],revolutePiston.cylinderColor[2],revolutePiston.cylinderColor[1],bodyPiston.sphereColor[3],bodyPiston.sphereColor[2],bodyPiston.sphereColor[1],pistonRod.color[3],pistonRod.color[2],pistonRod.color[1],revoluteDisc.cylinderColor[3],revoluteDisc.cylinderColor[2],revoluteDisc.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],fixedTranslationDisc.color[3],fixedTranslationDisc.color[2],fixedTranslationDisc.color[1],revoluteDrive.cylinderColor[3],revoluteDrive.cylinderColor[2],revoluteDrive.cylinderColor[1],bodyDrive.sphereColor[3],bodyDrive.sphereColor[2],bodyDrive.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (548): * Single equations (assignments): 541 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,21,88.9%), (1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.002576/0.7375, allocations: 1.723 MB / 0.5775 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003758/0.7379, allocations: 268.1 kB / 0.5778 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003848/0.7417, allocations: 2.663 MB / 0.5804 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001016/0.7418, allocations: 30.14 kB / 0.5804 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.238e-06/0.7419, allocations: 6.375 kB / 0.5804 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.496e-05/0.7419, allocations: 9.75 kB / 0.5804 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0101/0.752, allocations: 7.32 MB / 0.5876 GB, free: 116 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.752, allocations: 3.062 kB / 0.5876 GB, free: 116 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008054/0.7528, allocations: 239.6 kB / 0.5878 GB, free: 116 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001143/0.754, allocations: 493.4 kB / 0.5883 GB, free: 115.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001068/0.7541, allocations: 44.41 kB / 0.5883 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006453/0.7606, allocations: 7.971 MB / 0.5961 GB, free: 110.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.7606, allocations: 7.953 kB / 0.5961 GB, free: 110.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004922/0.7655, allocations: 3.997 MB / 0.6 GB, free: 108.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008105/0.7664, allocations: 343.8 kB / 0.6004 GB, free: 108.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003139/0.7667, allocations: 31.84 kB / 0.6004 GB, free: 108.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008797/0.7676, allocations: 79.12 kB / 0.6005 GB, free: 108.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002499/0.7678, allocations: 130 kB / 0.6006 GB, free: 108.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.823e-05/0.7679, allocations: 61.06 kB / 0.6006 GB, free: 108.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00251/0.7705, allocations: 1.943 MB / 0.6025 GB, free: 107.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7705, allocations: 1.219 kB / 0.6025 GB, free: 107.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003462/0.7739, allocations: 0.8351 MB / 0.6034 GB, free: 107.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (revoluteDrive.phi,revoluteDrive.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 (135): * Single equations (assignments): 128 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,88.9%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005362/0.7793, allocations: 4.647 MB / 0.6079 GB, free: 105.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009448/0.7888, allocations: 5.69 MB / 0.6135 GB, free: 104 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/0.7888, allocations: 3 kB / 0.6135 GB, free: 104 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001968/0.7908, allocations: 1.536 MB / 0.615 GB, free: 103.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002404/0.7932, allocations: 460.5 kB / 0.6154 GB, free: 103.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0517/0.8449, allocations: 38.31 MB / 0.6528 GB, free: 70.67 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002523/0.8475, allocations: 2.807 MB / 0.6555 GB, free: 68.42 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002878/0.8504, allocations: 1.335 MB / 0.6568 GB, free: 67.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001528/0.8519, allocations: 1.483 MB / 0.6583 GB, free: 66.2 MB / 446.1 MB Notification: Performance of SimCode: time 7.12e-07/0.8519, allocations: 0 / 0.6583 GB, free: 66.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08181/0.9337, allocations: 58.88 MB / 0.7158 GB, free: 8.738 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001481/0.9339, allocations: 224.8 kB / 0.716 GB, free: 8.48 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.192/4.126, allocations: 3.938 kB / 0.716 GB, free: 8.477 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PistonEngine_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PistonEngine.fmu > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1)