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.0008306/0.0008306, allocations: 91.53 kB / 15.36 MB, free: 0.7383 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.006092/0.006092, allocations: 172.6 kB / 16.26 MB, free: 6.676 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.225/1.225, allocations: 223.2 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1425/0.1425, allocations: 9.103 MB / 300.5 MB, free: 2.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003147/0.0003146, allocations: 8 kB / 363.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09611/0.09644, allocations: 52.44 MB / 416.2 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.1927/0.2892, allocations: 38.61 MB / 454.8 MB, free: 18.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01328/0.3025, allocations: 8.384 MB / 463.2 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004525/0.3071, allocations: 149.8 kB / 463.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007312/0.3078, allocations: 340.8 kB / 463.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002476/0.3103, allocations: 1.428 MB / 465.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004484/0.3108, allocations: 163.3 kB / 465.3 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002486/0.3133, allocations: 3.913 MB / 469.2 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008041/0.3141, allocations: 0.9662 MB / 470.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006587/0.3147, allocations: 0.8627 MB / 471 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001126/0.3159, allocations: 1.458 MB / 472.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002134/0.3161, allocations: 148.7 kB / 472.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009994/0.3171, allocations: 0.7837 MB / 473.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00068/0.3178, allocations: 1.263 MB / 474.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009172/0.3187, allocations: 1.681 MB / 476.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003802/0.3225, allocations: 4.933 MB / 481.3 MB, free: 7.207 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3226, allocations: 0.8438 kB / 481.3 MB, free: 7.207 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3226, allocations: 1.5 kB / 481.3 MB, free: 7.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.224e-05/0.3227, allocations: 0 / 481.3 MB, free: 7.207 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.01063/0.3333, allocations: 4.446 MB / 485.7 MB, free: 5.359 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3334, allocations: 9.5 kB / 485.8 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009022/0.3343, allocations: 0.6037 MB / 486.4 MB, free: 5.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007131/0.3414, allocations: 1.85 MB / 488.2 MB, free: 4.738 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002856/0.3443, allocations: 1.518 MB / 489.7 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.3444, allocations: 172 kB / 489.9 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004344/0.3448, allocations: 233.5 kB / 490.1 MB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01303/0.3579, allocations: 8.948 MB / 499.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.742e-05/0.358, allocations: 36.11 kB / 499.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000413/0.3584, allocations: 104.9 kB / 499.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003202/0.3616, allocations: 2.014 MB / 0.4895 GB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01448/0.3761, allocations: 7.967 MB / 0.4973 GB, free: 5.977 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03653/0.4127, allocations: 28.58 MB / 0.5252 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006993/0.4197, allocations: 2.816 MB / 0.5279 GB, free: 5.871 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001556/0.4213, allocations: 0.9864 MB / 0.5289 GB, free: 4.883 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008573/0.4299, allocations: 6.469 MB / 0.5352 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/0.43, allocations: 47.81 kB / 0.5352 GB, free: 13.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 3.667e-06/0.43, allocations: 0 / 0.5352 GB, free: 13.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=193): time 0.01568/0.4457, allocations: 6.486 MB / 0.5416 GB, free: 7.223 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.4458, allocations: 69.41 kB / 0.5416 GB, free: 7.141 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00491/0.4507, allocations: 3.039 MB / 0.5446 GB, free: 4.09 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.4508, allocations: 57.7 kB / 0.5447 GB, free: 4.027 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001557/0.4524, allocations: 2.354 MB / 0.547 GB, free: 1.641 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005733/0.4529, allocations: 0.7015 MB / 0.5476 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005711/0.4535, allocations: 388.2 kB / 0.548 GB, free: 0.543 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.224e-05/0.4536, allocations: 309.1 kB / 0.5483 GB, free: 244 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002517/0.4561, allocations: 1.5 MB / 0.5498 GB, free: 14.73 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003954/0.4601, allocations: 4.086 MB / 0.5538 GB, free: 9.367 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006429/0.4665, allocations: 6.035 MB / 0.5597 GB, free: 2.074 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.913e-05/0.4666, allocations: 28 kB / 0.5597 GB, free: 2.047 MB / 430.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.009675/0.4763, allocations: 5.97 MB / 0.5655 GB, free: 12.06 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.174e-05/0.4764, allocations: 48.06 kB / 0.5656 GB, free: 12.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001203/0.4765, allocations: 91.98 kB / 0.5657 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001602/0.4781, allocations: 0.6134 MB / 0.5663 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002846/0.481, allocations: 1.006 MB / 0.5672 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009308/0.4903, allocations: 8.477 MB / 0.5755 GB, free: 1.402 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003338/0.4937, allocations: 247.8 kB / 0.5757 GB, free: 1.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005754/0.4943, allocations: 276 kB / 0.576 GB, free: 0.8906 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.1896/0.6839, allocations: 1.713 MB / 0.5777 GB, free: 92.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004602/0.6843, allocations: 266.8 kB / 0.5779 GB, free: 92.82 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003993/0.6883, allocations: 2.663 MB / 0.5805 GB, free: 92.68 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.936e-05/0.6885, allocations: 32.14 kB / 0.5806 GB, free: 92.68 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.6885, allocations: 4.375 kB / 0.5806 GB, free: 92.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.686e-05/0.6885, allocations: 10.83 kB / 0.5806 GB, free: 92.68 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009619/0.6981, allocations: 7.325 MB / 0.5877 GB, free: 91.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/0.6981, allocations: 7.656 kB / 0.5877 GB, free: 91.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007915/0.6989, allocations: 237.6 kB / 0.588 GB, free: 91.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001172/0.7001, allocations: 496.8 kB / 0.5884 GB, free: 91.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.578e-05/0.7002, allocations: 36.81 kB / 0.5885 GB, free: 91.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005741/0.706, allocations: 7.281 MB / 0.5956 GB, free: 87.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.706, allocations: 9.641 kB / 0.5956 GB, free: 87.96 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004631/0.7106, allocations: 3.987 MB / 0.5995 GB, free: 86.51 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007277/0.7114, allocations: 362.5 kB / 0.5998 GB, free: 86.37 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002659/0.7116, allocations: 38.88 kB / 0.5999 GB, free: 86.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008637/0.7125, allocations: 79.66 kB / 0.6 GB, free: 86.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001878/0.7127, allocations: 123.5 kB / 0.6001 GB, free: 86.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.826e-05/0.7128, allocations: 63.23 kB / 0.6001 GB, free: 86.29 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002247/0.7151, allocations: 1.945 MB / 0.602 GB, free: 85.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7151, allocations: 3.969 kB / 0.602 GB, free: 85.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003199/0.7183, allocations: 0.8311 MB / 0.6028 GB, free: 85.49 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.005506/0.7238, allocations: 4.643 MB / 0.6074 GB, free: 83.29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005771/0.7296, allocations: 4.08 MB / 0.6114 GB, free: 81.94 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.7296, allocations: 2.219 kB / 0.6114 GB, free: 81.94 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001887/0.7315, allocations: 1.541 MB / 0.6129 GB, free: 81.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003424/0.7349, allocations: 420.5 kB / 0.6133 GB, free: 81.04 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0409/0.7758, allocations: 38.36 MB / 0.6507 GB, free: 48.96 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002305/0.7782, allocations: 2.802 MB / 0.6535 GB, free: 46.61 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002861/0.781, allocations: 1.345 MB / 0.6548 GB, free: 45.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001359/0.7824, allocations: 1.479 MB / 0.6562 GB, free: 43.79 MB / 446.1 MB Notification: Performance of SimCode: time 6.21e-07/0.7824, allocations: 0 / 0.6562 GB, free: 43.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0704/0.8528, allocations: 57.05 MB / 0.7119 GB, free: 3.148 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000163/0.853, allocations: 227.8 kB / 0.7122 GB, free: 2.887 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.928/3.781, allocations: 0 / 0.7122 GB, free: 2.887 MB / 462.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)