Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001621/0.001628, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001654/0.001654, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 55.91 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2747, allocations: 50.55 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02272/0.2974, allocations: 19.36 MB / 428.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01462/0.3121, allocations: 5.985 MB / 434.1 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004577/0.3167, allocations: 155.4 kB / 434.3 MB, free: 7.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0121/0.3289, allocations: 5.829 MB / 440.1 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009651/0.3386, allocations: 3.295 MB / 443.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004194/0.3428, allocations: 1.568 MB / 445 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01902/0.3618, allocations: 12.67 MB / 457.6 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01089/0.3728, allocations: 7.647 MB / 465.3 MB, free: 8.781 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00748/0.3803, allocations: 3.556 MB / 468.8 MB, free: 5.215 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008621/0.389, allocations: 4.729 MB / 473.6 MB, free: 484 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002669/0.3917, allocations: 0.711 MB / 474.3 MB, free: 15.76 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005165/0.3969, allocations: 1.662 MB / 476 MB, free: 14.1 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005955/0.4029, allocations: 4.166 MB / 480.1 MB, free: 9.922 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009177/0.4121, allocations: 4.741 MB / 484.9 MB, free: 5.156 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02084/0.433, allocations: 14.34 MB / 499.2 MB, free: 6.762 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.118e-05/0.433, allocations: 3.984 kB / 499.2 MB, free: 6.758 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.433, allocations: 3.938 kB / 499.2 MB, free: 6.754 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006364/0.4337, allocations: 0 / 499.2 MB, free: 6.754 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.03266/0.4663, allocations: 10.57 MB / 0.4978 GB, free: 12.08 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.4664, allocations: 8.031 kB / 0.4978 GB, free: 12.07 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003497/0.4699, allocations: 1.136 MB / 0.4989 GB, free: 10.93 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.271/0.7409, allocations: 24.3 MB / 0.5227 GB, free: 2.59 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02314/0.764, allocations: 9.168 MB / 0.5316 GB, free: 9.328 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005896/0.7647, allocations: 427.2 kB / 0.532 GB, free: 8.91 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00259/0.7673, allocations: 0.5894 MB / 0.5326 GB, free: 8.32 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3862/1.153, allocations: 16.16 MB / 0.5484 GB, free: 113.6 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002804/1.154, allocations: 96.75 kB / 0.5485 GB, free: 113.5 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008572/1.155, allocations: 269.4 kB / 0.5487 GB, free: 113.4 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003557/1.158, allocations: 2.775 MB / 0.5515 GB, free: 112.9 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0227/1.181, allocations: 12.86 MB / 0.564 GB, free: 105.6 MB / 462.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.07412/1.255, allocations: 66.23 MB / 0.6287 GB, free: 38.44 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01751/1.273, allocations: 7.596 MB / 0.6361 GB, free: 30.7 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004727/1.277, allocations: 4.194 MB / 0.6402 GB, free: 26.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01757/1.295, allocations: 11.7 MB / 0.6516 GB, free: 14.74 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.444e-05/1.295, allocations: 68.5 kB / 0.6517 GB, free: 14.66 MB / 462.1 MB Notification: Performance of pre-optimization done (n=280): time 7.043e-06/1.295, allocations: 4 kB / 0.6517 GB, free: 14.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1765/1.472, allocations: 47.8 MB / 0.6984 GB, free: 15.29 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002549/1.472, allocations: 398.1 kB / 0.6988 GB, free: 14.82 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01567/1.488, allocations: 7.165 MB / 0.7058 GB, free: 7.773 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.001083/1.489, allocations: 77.7 kB / 0.7058 GB, free: 7.691 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.005899/1.495, allocations: 5.346 MB / 0.711 GB, free: 2.543 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002499/1.497, allocations: 1.294 MB / 0.7123 GB, free: 1.238 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005639/1.503, allocations: 1.655 MB / 0.7139 GB, free: 15.57 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001541/1.503, allocations: 313 kB / 0.7142 GB, free: 15.26 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00687/1.51, allocations: 3.959 MB / 0.7181 GB, free: 11.29 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01134/1.521, allocations: 8.591 MB / 0.7265 GB, free: 428 kB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0199/1.541, allocations: 13.48 MB / 0.7396 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000177/1.542, allocations: 48 kB / 0.7397 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.2902/1.832, allocations: 17.2 MB / 0.7565 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001182/1.832, allocations: 72.25 kB / 0.7566 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002257/1.832, allocations: 163.7 kB / 0.7567 GB, free: 173.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01639/1.849, allocations: 5.769 MB / 0.7623 GB, free: 172.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005582/1.854, allocations: 1.755 MB / 0.7641 GB, free: 172.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03598/1.89, allocations: 31.67 MB / 0.795 GB, free: 144.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007931/1.898, allocations: 0.5242 MB / 0.7955 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001524/1.9, allocations: 468 kB / 0.7959 GB, free: 143.3 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * Number of states: 0 () * Number of discrete variables: 66 (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 (934): * Single equations (assignments): 928 * 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,93,51.6%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.006192/1.906, allocations: 3.463 MB / 0.7993 GB, free: 139.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001633/1.908, allocations: 0.682 MB / 0.8 GB, free: 139.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02155/1.929, allocations: 11.48 MB / 0.8112 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.223e-05/1.929, allocations: 38.67 kB / 0.8112 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.168e-05/1.929, allocations: 20 kB / 0.8113 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.497e-05/1.929, allocations: 15.94 kB / 0.8113 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04427/1.974, allocations: 24.74 MB / 0.8354 GB, free: 103 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.862e-05/1.974, allocations: 4 kB / 0.8354 GB, free: 103 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001854/1.976, allocations: 423.3 kB / 0.8358 GB, free: 102.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01429/1.99, allocations: 5.368 MB / 0.8411 GB, free: 97.21 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007174/1.991, allocations: 64 kB / 0.8411 GB, free: 97.15 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03357/2.024, allocations: 30.36 MB / 0.8708 GB, free: 66.58 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/2.024, allocations: 11.94 kB / 0.8708 GB, free: 66.57 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02723/2.051, allocations: 16.52 MB / 0.8869 GB, free: 49.89 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002203/2.054, allocations: 0.7196 MB / 0.8876 GB, free: 49.15 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002131/2.056, allocations: 60 kB / 0.8877 GB, free: 49.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004229/2.06, allocations: 261.5 kB / 0.8879 GB, free: 48.84 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001353/2.062, allocations: 246.6 kB / 0.8882 GB, free: 48.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004163/2.062, allocations: 88 kB / 0.8883 GB, free: 48.51 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00827/2.07, allocations: 4.616 MB / 0.8928 GB, free: 43.93 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9.52e-07/2.07, allocations: 0 / 0.8928 GB, free: 43.93 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01005/2.08, allocations: 1.956 MB / 0.8947 GB, free: 41.98 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * 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,87,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.02778/2.108, allocations: 17.22 MB / 0.9115 GB, free: 24.57 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01613/2.124, allocations: 10.52 MB / 0.9218 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.292e-05/2.124, allocations: 4 kB / 0.9218 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007722/2.132, allocations: 4.696 MB / 0.9264 GB, free: 9.258 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007648/2.14, allocations: 1.089 MB / 0.9274 GB, free: 8.176 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4501/2.59, allocations: 91.62 MB / 1.017 GB, free: 127.8 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01198/2.602, allocations: 5.53 MB / 1.022 GB, free: 122.3 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.007967/2.61, allocations: 2.62 MB / 1.025 GB, free: 119.7 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006757/2.617, allocations: 3.741 MB / 1.029 GB, free: 115.9 MB / 0.5451 GB Notification: Performance of SimCode: time 1.203e-06/2.617, allocations: 0 / 1.029 GB, free: 115.9 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5001/3.117, allocations: 157.4 MB / 1.182 GB, free: 152.8 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate platform static: time 41.32/44.44, allocations: 2.062 kB / 1.182 GB, free: 152.8 MB / 0.5451 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches