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.001897/0.001897, allocations: 101.9 kB / 19.73 MB, free: 2.109 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.001556/0.001556, allocations: 222.5 kB / 23.03 MB, free: 4.906 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.488/1.488, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.05097/0.05097, allocations: 9.237 MB / 322.5 MB, free: 9.855 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.002109/0.002109, allocations: 67.89 kB / 448.4 MB, free: 14.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1084, allocations: 55.47 MB / 0.4921 GB, free: 7.02 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.0108/0.1192, allocations: 8.447 MB / 0.5004 GB, free: 14.54 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00593/0.1252, allocations: 2.745 MB / 0.503 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001398/0.1266, allocations: 47.81 kB / 0.5031 GB, free: 11.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001343/0.1279, allocations: 437 kB / 0.5035 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004387/0.1323, allocations: 1.583 MB / 0.505 GB, free: 9.715 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007438/0.133, allocations: 179.7 kB / 0.5052 GB, free: 9.539 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004514/0.1376, allocations: 2.84 MB / 0.508 GB, free: 6.695 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001578/0.1391, allocations: 0.8958 MB / 0.5089 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001795/0.1409, allocations: 1.047 MB / 0.5099 GB, free: 4.719 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00221/0.1431, allocations: 1.592 MB / 0.5114 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004602/0.1436, allocations: 260 kB / 0.5117 GB, free: 2.867 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001529/0.1451, allocations: 0.7997 MB / 0.5125 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001437/0.1466, allocations: 1.367 MB / 0.5138 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2425/0.3891, allocations: 1.24 MB / 0.515 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007176/0.3963, allocations: 5.472 MB / 0.5204 GB, free: 9.781 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.3963, allocations: 1.031 kB / 0.5204 GB, free: 9.781 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3963, allocations: 0 / 0.5204 GB, free: 9.781 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002306/0.3965, allocations: 0 / 0.5204 GB, free: 9.781 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.01682/0.4134, allocations: 5.246 MB / 0.5255 GB, free: 8.223 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.4134, allocations: 10.56 kB / 0.5255 GB, free: 8.223 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001865/0.4136, allocations: 84.72 kB / 0.5256 GB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001588/0.4152, allocations: 0.5994 MB / 0.5262 GB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00754/0.4227, allocations: 1.84 MB / 0.528 GB, free: 7.902 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003894/0.4266, allocations: 1.467 MB / 0.5294 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000251/0.4269, allocations: 172.6 kB / 0.5296 GB, free: 7.504 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001255/0.4281, allocations: 232.4 kB / 0.5298 GB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01671/0.4448, allocations: 8.947 MB / 0.5385 GB, free: 4.941 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001066/0.4449, allocations: 30.89 kB / 0.5385 GB, free: 4.938 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003946/0.4453, allocations: 112.1 kB / 0.5387 GB, free: 4.898 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003121/0.4484, allocations: 2.01 MB / 0.5406 GB, free: 4.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01517/0.4636, allocations: 7.964 MB / 0.5484 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04801/0.5116, allocations: 27.02 MB / 0.5748 GB, free: 7.348 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007752/0.5194, allocations: 2.255 MB / 0.577 GB, free: 5.086 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001843/0.5212, allocations: 0.9269 MB / 0.5779 GB, free: 4.164 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009539/0.5308, allocations: 3.805 MB / 0.5816 GB, free: 384 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.15e-05/0.5308, allocations: 49.67 kB / 0.5817 GB, free: 328 kB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 5.1e-06/0.5308, allocations: 0 / 0.5817 GB, free: 328 kB / 414.1 MB Notification: Performance of matching and sorting (n=193): time 0.01831/0.5491, allocations: 6.459 MB / 0.588 GB, free: 9.918 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.54e-05/0.5492, allocations: 69.41 kB / 0.588 GB, free: 9.84 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004888/0.5541, allocations: 3.04 MB / 0.591 GB, free: 6.789 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002562/0.5543, allocations: 49.7 kB / 0.591 GB, free: 6.734 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001954/0.5563, allocations: 2.459 MB / 0.5934 GB, free: 4.285 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008414/0.5571, allocations: 0.7449 MB / 0.5942 GB, free: 3.551 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001448/0.5586, allocations: 0.9335 MB / 0.5951 GB, free: 2.605 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.5587, allocations: 301.1 kB / 0.5954 GB, free: 2.309 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002718/0.5614, allocations: 1.504 MB / 0.5968 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00487/0.5663, allocations: 4.079 MB / 0.6008 GB, free: 11.48 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008044/0.5743, allocations: 6.031 MB / 0.6067 GB, free: 4.566 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-05/0.5744, allocations: 28 kB / 0.6067 GB, free: 4.539 MB / 446.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01318/0.5876, allocations: 5.966 MB / 0.6126 GB, free: 14.71 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.5877, allocations: 47.94 kB / 0.6126 GB, free: 14.66 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001602/0.5879, allocations: 92 kB / 0.6127 GB, free: 14.57 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00175/0.5896, allocations: 0.6157 MB / 0.6133 GB, free: 13.95 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003646/0.5933, allocations: 1.006 MB / 0.6143 GB, free: 12.94 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0115/0.6048, allocations: 8.877 MB / 0.6229 GB, free: 3.742 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003795/0.6086, allocations: 243.9 kB / 0.6232 GB, free: 3.504 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007126/0.6093, allocations: 272 kB / 0.6234 GB, free: 3.238 MB / 462.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.003143/0.6124, allocations: 1.728 MB / 0.6251 GB, free: 1.504 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005199/0.6129, allocations: 278.1 kB / 0.6254 GB, free: 1.23 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004897/0.6178, allocations: 2.656 MB / 0.628 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001132/0.6179, allocations: 31.98 kB / 0.628 GB, free: 14.52 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.475e-05/0.618, allocations: 11.94 kB / 0.628 GB, free: 14.51 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.081e-05/0.618, allocations: 9 kB / 0.628 GB, free: 14.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01345/0.6314, allocations: 6.85 MB / 0.6347 GB, free: 7.559 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.219e-05/0.6314, allocations: 4 kB / 0.6347 GB, free: 7.555 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008883/0.6323, allocations: 239.6 kB / 0.635 GB, free: 7.32 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001346/0.6337, allocations: 0.4889 MB / 0.6354 GB, free: 6.828 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.6338, allocations: 39.98 kB / 0.6355 GB, free: 6.789 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009253/0.6431, allocations: 7.596 MB / 0.6429 GB, free: 14.86 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.997e-06/0.6431, allocations: 8 kB / 0.6429 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006721/0.6498, allocations: 3.99 MB / 0.6468 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001081/0.6509, allocations: 278.1 kB / 0.6471 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004149/0.6513, allocations: 40.77 kB / 0.6471 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.6523, allocations: 75.91 kB / 0.6472 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000293/0.6526, allocations: 133.7 kB / 0.6473 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00012/0.6527, allocations: 57.39 kB / 0.6474 GB, free: 10.21 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00348/0.6562, allocations: 1.944 MB / 0.6493 GB, free: 8.262 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6562, allocations: 0 / 0.6493 GB, free: 8.262 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005892/0.6621, allocations: 0.8189 MB / 0.6501 GB, free: 7.445 MB / 494.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.007017/0.6691, allocations: 4.655 MB / 0.6546 GB, free: 2.699 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007552/0.6766, allocations: 3.959 MB / 0.6585 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.506e-05/0.6767, allocations: 4.812 kB / 0.6585 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002601/0.6793, allocations: 1.469 MB / 0.6599 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002468/0.6817, allocations: 450.7 kB / 0.6603 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06713/0.7489, allocations: 33.12 MB / 0.6927 GB, free: 8.102 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0061/0.755, allocations: 2.255 MB / 0.6949 GB, free: 5.816 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003415/0.7584, allocations: 1.321 MB / 0.6962 GB, free: 4.488 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002308/0.7607, allocations: 1.479 MB / 0.6976 GB, free: 3.008 MB / 0.5294 GB Notification: Performance of SimCode: time 1.764e-06/0.7607, allocations: 0 / 0.6976 GB, free: 3.008 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3525/1.113, allocations: 58.51 MB / 0.7547 GB, free: 169.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.72/25.83, allocations: 18.75 kB / 0.7548 GB, free: 169.8 MB / 0.545 GB " [Timeout remaining time 634] (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: 28.687029444030486] Failed to read output from testmodel.py, exit status != 0: 26.04986461997032 26.067167058 25.667110978 Calling exit ...