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.001929/0.001929, allocations: 117.1 kB / 17.16 MB, free: 5.895 MB / 14.72 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.001546/0.001546, allocations: 215 kB / 20.13 MB, free: 2.949 MB / 14.72 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 1.532/1.532, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] 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.04884/0.04884, allocations: 9.225 MB / 318.8 MB, free: 15.57 MB / 254.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 75.11 kB / 443.2 MB, free: 39.49 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1131, allocations: 55.44 MB / 498.7 MB, free: 6.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.01001/0.1231, allocations: 9.766 MB / 0.4965 GB, free: 12.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007365/0.1305, allocations: 2.893 MB / 0.4994 GB, free: 9.898 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001631/0.1321, allocations: 43.88 kB / 0.4994 GB, free: 9.855 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00113/0.1332, allocations: 429 kB / 0.4998 GB, free: 9.434 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004111/0.1373, allocations: 1.576 MB / 0.5013 GB, free: 7.852 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006444/0.138, allocations: 183.8 kB / 0.5015 GB, free: 7.672 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00416/0.1421, allocations: 2.841 MB / 0.5043 GB, free: 4.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001605/0.1437, allocations: 0.9032 MB / 0.5052 GB, free: 3.887 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001872/0.1456, allocations: 1.047 MB / 0.5062 GB, free: 2.836 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002629/0.1482, allocations: 1.588 MB / 0.5077 GB, free: 1.242 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000641/0.1489, allocations: 260 kB / 0.508 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002/0.1509, allocations: 0.9128 MB / 0.5089 GB, free: 76 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001476/0.1524, allocations: 1.359 MB / 0.5102 GB, free: 14.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002029/0.1544, allocations: 1.747 MB / 0.5119 GB, free: 12.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007423/0.1618, allocations: 5.47 MB / 0.5173 GB, free: 7.461 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1618, allocations: 0 / 0.5173 GB, free: 7.461 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1618, allocations: 0 / 0.5173 GB, free: 7.461 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001625/0.162, allocations: 0 / 0.5173 GB, free: 7.461 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01526/0.1772, allocations: 5.312 MB / 0.5225 GB, free: 2.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/0.1773, allocations: 12.03 kB / 0.5225 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001404/0.1774, allocations: 84.62 kB / 0.5225 GB, free: 1.973 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001056/0.1785, allocations: 0.5971 MB / 0.5231 GB, free: 1.367 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00753/0.186, allocations: 1.839 MB / 0.5249 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003353/0.1894, allocations: 1.522 MB / 0.5264 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00025/0.1896, allocations: 172.3 kB / 0.5266 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009945/0.1906, allocations: 227.8 kB / 0.5268 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01866/0.2093, allocations: 8.952 MB / 0.5355 GB, free: 4.148 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001753/0.2095, allocations: 35.77 kB / 0.5356 GB, free: 4.113 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001027/0.2105, allocations: 111.8 kB / 0.5357 GB, free: 4.004 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004001/0.2145, allocations: 2.013 MB / 0.5376 GB, free: 1.988 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01924/0.2337, allocations: 7.967 MB / 0.5454 GB, free: 10.01 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05066/0.2844, allocations: 28.52 MB / 0.5733 GB, free: 12.89 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008114/0.2925, allocations: 2.722 MB / 0.5759 GB, free: 10.05 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001927/0.2944, allocations: 0.9193 MB / 0.5768 GB, free: 9.129 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01101/0.3054, allocations: 6.483 MB / 0.5832 GB, free: 2.02 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.628e-05/0.3055, allocations: 51.81 kB / 0.5832 GB, free: 1.961 MB / 446.1 MB Notification: Performance of pre-optimization done (n=155): time 4.979e-06/0.3055, allocations: 0 / 0.5832 GB, free: 1.961 MB / 446.1 MB Notification: Performance of matching and sorting (n=193): time 0.2478/0.5532, allocations: 6.506 MB / 0.5896 GB, free: 89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.821e-05/0.5533, allocations: 74.89 kB / 0.5896 GB, free: 88.93 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004879/0.5582, allocations: 3.041 MB / 0.5926 GB, free: 88.09 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001966/0.5583, allocations: 59.84 kB / 0.5927 GB, free: 88.04 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001419/0.5598, allocations: 2.451 MB / 0.5951 GB, free: 86.35 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006101/0.5604, allocations: 0.7371 MB / 0.5958 GB, free: 85.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001175/0.5616, allocations: 0.9321 MB / 0.5967 GB, free: 85.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.973e-05/0.5616, allocations: 305.8 kB / 0.597 GB, free: 85.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002322/0.5639, allocations: 1.508 MB / 0.5984 GB, free: 84.55 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003175/0.5671, allocations: 4.08 MB / 0.6024 GB, free: 80.63 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005047/0.5721, allocations: 6.034 MB / 0.6083 GB, free: 75.58 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.052e-05/0.5722, allocations: 25.69 kB / 0.6084 GB, free: 75.58 MB / 446.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.008535/0.5807, allocations: 5.974 MB / 0.6142 GB, free: 72.52 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.41e-05/0.5808, allocations: 44.97 kB / 0.6142 GB, free: 72.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.203e-05/0.5809, allocations: 92 kB / 0.6143 GB, free: 72.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001445/0.5823, allocations: 0.6258 MB / 0.6149 GB, free: 71.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002922/0.5853, allocations: 0.9994 MB / 0.6159 GB, free: 71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008084/0.5933, allocations: 9.263 MB / 0.6249 GB, free: 61.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003351/0.5967, allocations: 239.9 kB / 0.6252 GB, free: 61.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004434/0.5971, allocations: 280 kB / 0.6254 GB, free: 60.86 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.002099/0.5992, allocations: 1.729 MB / 0.6271 GB, free: 59.12 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003816/0.5996, allocations: 278.1 kB / 0.6274 GB, free: 58.85 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003628/0.6032, allocations: 2.646 MB / 0.63 GB, free: 56.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.744e-05/0.6033, allocations: 32.86 kB / 0.63 GB, free: 56.15 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.6033, allocations: 4 kB / 0.63 GB, free: 56.14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/0.6034, allocations: 7.969 kB / 0.63 GB, free: 56.14 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009778/0.6131, allocations: 7.253 MB / 0.6371 GB, free: 48.78 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.057e-05/0.6131, allocations: 4.875 kB / 0.6371 GB, free: 48.78 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007999/0.6139, allocations: 240.2 kB / 0.6373 GB, free: 48.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001143/0.6151, allocations: 489.3 kB / 0.6378 GB, free: 48.06 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.272e-05/0.6152, allocations: 39.98 kB / 0.6378 GB, free: 48.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006491/0.6217, allocations: 7.98 MB / 0.6456 GB, free: 39.63 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.6217, allocations: 7.938 kB / 0.6456 GB, free: 39.62 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005257/0.6269, allocations: 3.997 MB / 0.6495 GB, free: 35.55 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001636/0.6286, allocations: 355.8 kB / 0.6499 GB, free: 35.18 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004731/0.629, allocations: 36 kB / 0.6499 GB, free: 35.15 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000979/0.63, allocations: 79.91 kB / 0.65 GB, free: 35.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003231/0.6303, allocations: 129 kB / 0.6501 GB, free: 34.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.6304, allocations: 59.03 kB / 0.6502 GB, free: 34.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003003/0.6334, allocations: 1.94 MB / 0.6521 GB, free: 32.95 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6334, allocations: 4 kB / 0.6521 GB, free: 32.94 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003912/0.6374, allocations: 0.8163 MB / 0.6529 GB, free: 32.12 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.005193/0.6425, allocations: 4.646 MB / 0.6574 GB, free: 27.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005897/0.6484, allocations: 3.959 MB / 0.6613 GB, free: 23.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/0.6485, allocations: 4 kB / 0.6613 GB, free: 23.42 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001866/0.6503, allocations: 1.472 MB / 0.6627 GB, free: 21.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002488/0.6528, allocations: 447.8 kB / 0.6631 GB, free: 21.49 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05525/0.7081, allocations: 33.05 MB / 0.6954 GB, free: 0.8516 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004906/0.713, allocations: 2.802 MB / 0.6982 GB, free: 14.03 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003927/0.7169, allocations: 1.325 MB / 0.6995 GB, free: 12.71 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002663/0.7196, allocations: 1.487 MB / 0.7009 GB, free: 11.22 MB / 478.1 MB Notification: Performance of SimCode: time 1.183e-06/0.7196, allocations: 0 / 0.7009 GB, free: 11.22 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1208/0.8404, allocations: 56.55 MB / 0.7561 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.02/23.87, allocations: 2.188 kB / 0.7561 GB, free: 2.918 MB / 0.5137 GB " [Timeout remaining time 636] (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 os._exit(0), Time elapsed: 26.891629402001854] Failed to read output from testmodel.py, exit status != 0: 24.05970697698649 24.075908915 23.910882194 Calling exit ...