Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001602/0.001602, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001699/0.001699, allocations: 180.5 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002076/0.002076, allocations: 47.92 kB / 370.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.263, allocations: 52.19 MB / 422.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02252/0.2856, allocations: 20.63 MB / 443.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01376/0.2993, allocations: 6.239 MB / 449.5 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004279/0.3036, allocations: 198.9 kB / 449.7 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01228/0.3159, allocations: 6.46 MB / 456.2 MB, free: 12.94 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00908/0.325, allocations: 3.541 MB / 459.7 MB, free: 9.383 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003949/0.3289, allocations: 1.669 MB / 461.4 MB, free: 7.711 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01812/0.347, allocations: 12.69 MB / 474.1 MB, free: 10.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008739/0.3558, allocations: 6.298 MB / 480.4 MB, free: 4.598 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007025/0.3628, allocations: 3.833 MB / 484.2 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008745/0.3715, allocations: 5.355 MB / 489.6 MB, free: 11.38 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002199/0.3737, allocations: 0.7461 MB / 490.3 MB, free: 10.64 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004247/0.378, allocations: 1.756 MB / 492.1 MB, free: 8.879 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005406/0.3834, allocations: 4.57 MB / 496.7 MB, free: 4.297 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007854/0.3912, allocations: 4.954 MB / 0.4899 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01883/0.4101, allocations: 14.93 MB / 0.5044 GB, free: 336 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.4101, allocations: 0 / 0.5044 GB, free: 336 kB / 414.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4101, allocations: 0 / 0.5044 GB, free: 336 kB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004322/0.4105, allocations: 0 / 0.5044 GB, free: 336 kB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.03008/0.4406, allocations: 10.89 MB / 0.5151 GB, free: 5.344 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/0.4407, allocations: 12.03 kB / 0.5151 GB, free: 5.332 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003033/0.4437, allocations: 1.19 MB / 0.5162 GB, free: 4.133 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.694/1.138, allocations: 24.34 MB / 0.54 GB, free: 100.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0197/1.157, allocations: 9.87 MB / 0.5496 GB, free: 97.22 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003154/1.158, allocations: 448 kB / 0.5501 GB, free: 97.07 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002508/1.16, allocations: 0.609 MB / 0.5507 GB, free: 96.89 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0266/1.187, allocations: 16.75 MB / 0.567 GB, free: 80.26 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002607/1.187, allocations: 95.36 kB / 0.5671 GB, free: 80.17 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006651/1.188, allocations: 283.7 kB / 0.5674 GB, free: 79.91 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003432/1.191, allocations: 2.858 MB / 0.5702 GB, free: 77.07 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02238/1.214, allocations: 13.28 MB / 0.5831 GB, free: 63.79 MB / 446.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07514/1.289, allocations: 68.18 MB / 0.6497 GB, free: 9.855 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02114/1.31, allocations: 7.217 MB / 0.6568 GB, free: 2.605 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006304/1.316, allocations: 4.071 MB / 0.6608 GB, free: 14.52 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02454/1.341, allocations: 11.38 MB / 0.6719 GB, free: 3.262 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.533e-05/1.341, allocations: 72.5 kB / 0.6719 GB, free: 3.184 MB / 478.1 MB Notification: Performance of pre-optimization done (n=294): time 5.561e-06/1.341, allocations: 3.938 kB / 0.6719 GB, free: 3.18 MB / 478.1 MB Notification: Performance of matching and sorting (n=360): time 0.1915/1.532, allocations: 50.12 MB / 0.7209 GB, free: 1.277 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002488/1.533, allocations: 402.2 kB / 0.7213 GB, free: 0.7969 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0132/1.546, allocations: 7.325 MB / 0.7284 GB, free: 9.512 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009795/1.547, allocations: 81.69 kB / 0.7285 GB, free: 9.426 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.005353/1.552, allocations: 5.531 MB / 0.7339 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002142/1.554, allocations: 1.372 MB / 0.7352 GB, free: 2.469 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00334/1.558, allocations: 1.719 MB / 0.7369 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001283/1.558, allocations: 301.1 kB / 0.7372 GB, free: 448 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2124/1.77, allocations: 4.126 MB / 0.7412 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007292/1.777, allocations: 8.865 MB / 0.7499 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01273/1.79, allocations: 13.95 MB / 0.7635 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001718/1.79, allocations: 49.72 kB / 0.7636 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.03347/1.824, allocations: 17.82 MB / 0.781 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.882e-05/1.824, allocations: 76 kB / 0.781 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001508/1.824, allocations: 167.9 kB / 0.7812 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01683/1.841, allocations: 6.071 MB / 0.7871 GB, free: 148.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005733/1.847, allocations: 1.825 MB / 0.7889 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03651/1.883, allocations: 32.61 MB / 0.8208 GB, free: 113.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008133/1.891, allocations: 0.5523 MB / 0.8213 GB, free: 113.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001386/1.893, allocations: 480 kB / 0.8218 GB, free: 112.8 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 743 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[1],crank2.color[3],crank2.color[2],crank2.color[1],crank2.body.sphereColor[3],crank2.body.sphereColor[2],crank2.body.sphereColor[1],crank1.color[3],crank1.color[2],crank1.color[1],crank1.body.sphereColor[3],crank1.body.sphereColor[2],crank1.body.sphereColor[1],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (968): * Single equations (assignments): 962 * Array equations: 3 * 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 {(8,96,51.6%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.005745/1.898, allocations: 3.587 MB / 0.8253 GB, free: 109.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001504/1.9, allocations: 0.7069 MB / 0.826 GB, free: 109 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02281/1.923, allocations: 12.03 MB / 0.8377 GB, free: 96.86 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.305e-05/1.923, allocations: 47 kB / 0.8377 GB, free: 96.82 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.405e-05/1.923, allocations: 16 kB / 0.8378 GB, free: 96.81 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.965e-05/1.923, allocations: 19.94 kB / 0.8378 GB, free: 96.79 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04496/1.968, allocations: 25.76 MB / 0.8629 GB, free: 70.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.598e-05/1.968, allocations: 8 kB / 0.8629 GB, free: 70.73 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002278/1.97, allocations: 463.3 kB / 0.8634 GB, free: 70.27 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01626/1.986, allocations: 5.707 MB / 0.869 GB, free: 64.55 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008366/1.987, allocations: 64 kB / 0.869 GB, free: 64.49 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03875/2.026, allocations: 31.4 MB / 0.8997 GB, free: 32.95 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.244e-06/2.026, allocations: 7.938 kB / 0.8997 GB, free: 32.95 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03079/2.057, allocations: 17.37 MB / 0.9166 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004427/2.061, allocations: 1.328 MB / 0.9179 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002351/2.064, allocations: 68.06 kB / 0.918 GB, free: 14.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004634/2.068, allocations: 275.6 kB / 0.9183 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0014/2.07, allocations: 274.6 kB / 0.9185 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006195/2.07, allocations: 95.98 kB / 0.9186 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007755/2.078, allocations: 4.71 MB / 0.9232 GB, free: 8.738 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.01e-07/2.078, allocations: 0 / 0.9232 GB, free: 8.738 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008986/2.087, allocations: 2.052 MB / 0.9252 GB, free: 6.691 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 2 (inertia.phi,inertia.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 (232): * Single equations (assignments): 226 * Array equations: 3 * 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 {(7,90,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.2434/2.33, allocations: 18.09 MB / 0.9429 GB, free: 176.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01539/2.346, allocations: 10.53 MB / 0.9532 GB, free: 173.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.348e-06/2.346, allocations: 3.875 kB / 0.9532 GB, free: 173.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007468/2.353, allocations: 4.619 MB / 0.9577 GB, free: 171.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005867/2.359, allocations: 1.117 MB / 0.9588 GB, free: 171.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1404/2.5, allocations: 95.18 MB / 1.052 GB, free: 84.21 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007135/2.507, allocations: 5.736 MB / 1.057 GB, free: 78.44 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006014/2.513, allocations: 2.713 MB / 1.06 GB, free: 75.72 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00529/2.518, allocations: 3.893 MB / 1.064 GB, free: 71.82 MB / 0.545 GB Notification: Performance of SimCode: time 1.413e-06/2.518, allocations: 0 / 1.064 GB, free: 71.82 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.458/2.976, allocations: 169.8 MB / 1.23 GB, free: 126.2 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 44.23/47.21, allocations: 4.781 kB / 1.23 GB, free: 126.2 MB / 0.5607 GB " [Timeout remaining time 613] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 9.94431e-05 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 50.05118638500062]