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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008191/0.0008191, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.916/0.916, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.02709/0.02709, allocations: 7.118 MB / 266.3 MB, free: 6.32 MB / 250.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 392.4 MB, free: 4 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.842e-05/2.006e-05, allocations: 2.281 kB / 392.4 MB, free: 3.996 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.007034/0.007054, allocations: 8.51 MB / 400.9 MB, free: 11.45 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004945/0.012, allocations: 2.748 MB / 403.6 MB, free: 8.688 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001205/0.0132, allocations: 47.81 kB / 403.7 MB, free: 8.641 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001006/0.01421, allocations: 436.9 kB / 404.1 MB, free: 8.211 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003264/0.01747, allocations: 1.633 MB / 405.8 MB, free: 6.57 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004827/0.01796, allocations: 179.6 kB / 405.9 MB, free: 6.395 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002773/0.02073, allocations: 2.896 MB / 408.8 MB, free: 3.488 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001151/0.02188, allocations: 0.8994 MB / 409.7 MB, free: 2.559 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0017/0.02358, allocations: 1.574 MB / 411.3 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1484/0.172, allocations: 1.442 MB / 412.7 MB, free: 16.8 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008292/0.1728, allocations: 259.6 kB / 413 MB, free: 16.8 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00144/0.1743, allocations: 0.8552 MB / 413.8 MB, free: 16.8 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009602/0.1752, allocations: 1.411 MB / 415.3 MB, free: 16.8 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009923/0.1762, allocations: 0.9367 MB / 416.2 MB, free: 16.8 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004974/0.1812, allocations: 5.433 MB / 421.6 MB, free: 16.4 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1812, allocations: 1.062 kB / 421.6 MB, free: 16.4 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1812, allocations: 0 / 421.6 MB, free: 16.4 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001011/0.1813, allocations: 0 / 421.6 MB, free: 16.4 MB / 330.7 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.009148/0.1905, allocations: 5.25 MB / 426.9 MB, free: 14.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.1905, allocations: 9.781 kB / 426.9 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007066/0.1912, allocations: 0.602 MB / 427.5 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003751/0.195, allocations: 1.917 MB / 429.4 MB, free: 13.47 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002465/0.1974, allocations: 1.44 MB / 430.8 MB, free: 12.61 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001321/0.1976, allocations: 174.2 kB / 431 MB, free: 12.56 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004374/0.198, allocations: 233.7 kB / 431.2 MB, free: 12.51 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009768/0.2078, allocations: 8.948 MB / 440.2 MB, free: 7.488 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002049/0.208, allocations: 30.81 kB / 440.2 MB, free: 7.48 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007409/0.2087, allocations: 110.2 kB / 440.3 MB, free: 7.441 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001925/0.2106, allocations: 2.013 MB / 442.3 MB, free: 6.152 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01116/0.2218, allocations: 7.895 MB / 450.2 MB, free: 14.37 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02984/0.2516, allocations: 27.04 MB / 477.3 MB, free: 3.137 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004544/0.2562, allocations: 2.395 MB / 479.7 MB, free: 0.75 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001066/0.2572, allocations: 0.904 MB / 480.6 MB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005907/0.2631, allocations: 3.844 MB / 484.4 MB, free: 12.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/0.2632, allocations: 50.88 kB / 484.5 MB, free: 11.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=155): time 5.942e-06/0.2632, allocations: 0 / 484.5 MB, free: 11.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=193): time 0.01093/0.2741, allocations: 6.632 MB / 491.1 MB, free: 5.387 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.2742, allocations: 73.41 kB / 491.2 MB, free: 5.301 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003901/0.2781, allocations: 3.167 MB / 494.3 MB, free: 2.121 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001177/0.2782, allocations: 49.7 kB / 494.4 MB, free: 2.066 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001492/0.2797, allocations: 2.427 MB / 496.8 MB, free: 15.64 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004797/0.2801, allocations: 0.7355 MB / 497.6 MB, free: 14.92 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009286/0.2811, allocations: 0.9255 MB / 498.5 MB, free: 13.98 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.398e-05/0.2811, allocations: 305.1 kB / 498.8 MB, free: 13.68 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001797/0.2829, allocations: 1.493 MB / 0.4885 GB, free: 12.18 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003138/0.2861, allocations: 4.075 MB / 0.4925 GB, free: 6.871 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005472/0.2916, allocations: 6.02 MB / 0.4984 GB, free: 15.64 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.147e-05/0.2916, allocations: 28 kB / 0.4984 GB, free: 15.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.00886/0.3005, allocations: 5.945 MB / 0.5042 GB, free: 9.668 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.877e-05/0.3005, allocations: 44 kB / 0.5043 GB, free: 9.625 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001236/0.3007, allocations: 92 kB / 0.5044 GB, free: 9.535 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001079/0.3017, allocations: 0.5789 MB / 0.5049 GB, free: 8.953 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002038/0.3038, allocations: 1.01 MB / 0.5059 GB, free: 7.941 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007362/0.3111, allocations: 8.82 MB / 0.5145 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002629/0.3138, allocations: 247.3 kB / 0.5148 GB, free: 14.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004762/0.3142, allocations: 276 kB / 0.515 GB, free: 14.28 MB / 426.7 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.002586/0.3168, allocations: 1.724 MB / 0.5167 GB, free: 12.54 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004736/0.3173, allocations: 278.1 kB / 0.517 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003155/0.3205, allocations: 2.64 MB / 0.5196 GB, free: 9.602 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.287e-05/0.3205, allocations: 31.98 kB / 0.5196 GB, free: 9.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.3205, allocations: 4 kB / 0.5196 GB, free: 9.566 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.3205, allocations: 7.969 kB / 0.5196 GB, free: 9.559 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01059/0.3311, allocations: 6.869 MB / 0.5263 GB, free: 2.594 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/0.3311, allocations: 4 kB / 0.5263 GB, free: 2.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000551/0.3317, allocations: 235.7 kB / 0.5265 GB, free: 2.359 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007661/0.3325, allocations: 442.5 kB / 0.527 GB, free: 1.918 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000117/0.3326, allocations: 43.92 kB / 0.527 GB, free: 1.875 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006443/0.339, allocations: 7.565 MB / 0.5344 GB, free: 9.984 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.339, allocations: 4 kB / 0.5344 GB, free: 9.98 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004343/0.3434, allocations: 3.97 MB / 0.5383 GB, free: 5.934 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006149/0.344, allocations: 282 kB / 0.5385 GB, free: 5.656 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002375/0.3442, allocations: 36 kB / 0.5386 GB, free: 5.621 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000514/0.3447, allocations: 79.91 kB / 0.5386 GB, free: 5.543 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002036/0.3449, allocations: 136.9 kB / 0.5388 GB, free: 5.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.051e-05/0.345, allocations: 56.06 kB / 0.5388 GB, free: 5.355 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002375/0.3474, allocations: 1.924 MB / 0.5407 GB, free: 3.426 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3474, allocations: 0 / 0.5407 GB, free: 3.426 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002676/0.3501, allocations: 0.8119 MB / 0.5415 GB, free: 2.617 MB / 442.7 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 {(4,16,68.8%), (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.004415/0.3545, allocations: 4.608 MB / 0.546 GB, free: 13.92 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004802/0.3593, allocations: 3.948 MB / 0.5499 GB, free: 9.961 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.3593, allocations: 0 / 0.5499 GB, free: 9.961 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001649/0.3609, allocations: 1.477 MB / 0.5513 GB, free: 8.445 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001637/0.3626, allocations: 444.2 kB / 0.5517 GB, free: 8.02 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1708/0.5334, allocations: 32.86 MB / 0.5838 GB, free: 150.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002726/0.5361, allocations: 2.243 MB / 0.586 GB, free: 150.2 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002291/0.5384, allocations: 1.338 MB / 0.5873 GB, free: 150.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001429/0.5398, allocations: 1.484 MB / 0.5888 GB, free: 148.9 MB / 474.7 MB Notification: Performance of SimCode: time 2.074e-06/0.5398, allocations: 0 / 0.5888 GB, free: 148.9 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07852/0.6183, allocations: 56.72 MB / 0.6442 GB, free: 100.6 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.16/10.77, allocations: 6.812 kB / 0.6442 GB, free: 100.5 MB / 474.7 MB " [Timeout remaining time 649] (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 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PistonEngine.fmu > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.63231325801462] Failed to read output from testmodel.py, exit status != 0: 10.894884150475264 10.900630688 10.717977515 Calling exit ...