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.001285/0.001285, 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.001245/0.001246, 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.385/1.385, allocations: 227.4 MB / 247 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001761/0.001761, allocations: 67.88 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2592, allocations: 50.55 MB / 408.9 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02188/0.2811, allocations: 19.36 MB / 428.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01273/0.2939, allocations: 5.981 MB / 434.2 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003761/0.2977, allocations: 163.4 kB / 434.4 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.011/0.3087, allocations: 5.821 MB / 440.2 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008133/0.3169, allocations: 3.303 MB / 443.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003369/0.3203, allocations: 1.564 MB / 445.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01845/0.3388, allocations: 12.66 MB / 457.7 MB, free: 480 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01006/0.3489, allocations: 7.654 MB / 465.4 MB, free: 8.727 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006182/0.3551, allocations: 3.56 MB / 468.9 MB, free: 5.156 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007213/0.3623, allocations: 4.717 MB / 473.6 MB, free: 436 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002262/0.3646, allocations: 0.7149 MB / 474.4 MB, free: 15.71 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004608/0.3693, allocations: 1.662 MB / 476 MB, free: 14.05 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00572/0.375, allocations: 4.162 MB / 480.2 MB, free: 9.875 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008545/0.3836, allocations: 4.744 MB / 484.9 MB, free: 5.105 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01915/0.4028, allocations: 14.34 MB / 499.3 MB, free: 6.707 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.957e-06/0.4028, allocations: 7.922 kB / 499.3 MB, free: 6.699 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4028, allocations: 0 / 499.3 MB, free: 6.699 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003725/0.4032, allocations: 0 / 499.3 MB, free: 6.699 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.02963/0.4329, allocations: 10.56 MB / 0.4979 GB, free: 12.03 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.4329, allocations: 8.031 kB / 0.4979 GB, free: 12.02 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002568/0.4355, allocations: 1.144 MB / 0.499 GB, free: 10.87 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3069/0.7424, allocations: 24.3 MB / 0.5227 GB, free: 2.535 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0213/0.7638, allocations: 9.161 MB / 0.5317 GB, free: 9.281 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004318/0.7643, allocations: 431.2 kB / 0.5321 GB, free: 8.859 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002098/0.7664, allocations: 0.5894 MB / 0.5327 GB, free: 8.27 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4159/1.182, allocations: 16.16 MB / 0.5485 GB, free: 113.4 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003565/1.183, allocations: 96.97 kB / 0.5486 GB, free: 113.4 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001569/1.184, allocations: 271.7 kB / 0.5488 GB, free: 113.2 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004022/1.188, allocations: 2.761 MB / 0.5515 GB, free: 112.7 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02393/1.212, allocations: 12.86 MB / 0.5641 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.0733/1.286, allocations: 66.24 MB / 0.6288 GB, free: 38.38 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01761/1.303, allocations: 7.595 MB / 0.6362 GB, free: 30.64 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00472/1.308, allocations: 4.2 MB / 0.6403 GB, free: 26.44 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01757/1.326, allocations: 11.7 MB / 0.6517 GB, free: 14.67 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/1.326, allocations: 68.5 kB / 0.6518 GB, free: 14.6 MB / 462.1 MB Notification: Performance of pre-optimization done (n=280): time 6.933e-06/1.326, allocations: 0 / 0.6518 GB, free: 14.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1791/1.505, allocations: 47.79 MB / 0.6984 GB, free: 15.24 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000259/1.505, allocations: 398 kB / 0.6988 GB, free: 14.77 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01256/1.518, allocations: 7.169 MB / 0.7058 GB, free: 7.719 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0007516/1.518, allocations: 73.7 kB / 0.7059 GB, free: 7.641 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.004982/1.523, allocations: 5.354 MB / 0.7111 GB, free: 2.484 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.00208/1.526, allocations: 1.298 MB / 0.7124 GB, free: 1.176 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003459/1.529, allocations: 1.651 MB / 0.714 GB, free: 15.51 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001396/1.529, allocations: 309.1 kB / 0.7143 GB, free: 15.21 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006437/1.536, allocations: 3.963 MB / 0.7182 GB, free: 11.23 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01071/1.546, allocations: 8.598 MB / 0.7266 GB, free: 364 kB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01864/1.565, allocations: 13.48 MB / 0.7397 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000128/1.565, allocations: 48 kB / 0.7398 GB, free: 0.5625 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.2635/1.829, allocations: 17.19 MB / 0.7566 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001087/1.829, allocations: 72.34 kB / 0.7566 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000184/1.829, allocations: 163.7 kB / 0.7568 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0168/1.846, allocations: 5.773 MB / 0.7624 GB, free: 172.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005172/1.851, allocations: 1.75 MB / 0.7641 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03537/1.887, allocations: 31.67 MB / 0.7951 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007083/1.894, allocations: 0.5276 MB / 0.7956 GB, free: 143.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001295/1.895, allocations: 464 kB / 0.796 GB, free: 143.2 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.005526/1.901, allocations: 3.466 MB / 0.7994 GB, free: 139.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001536/1.902, allocations: 0.6881 MB / 0.8001 GB, free: 139.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02192/1.924, allocations: 11.48 MB / 0.8113 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.457e-05/1.924, allocations: 32 kB / 0.8113 GB, free: 128 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.454e-05/1.924, allocations: 20 kB / 0.8113 GB, free: 128 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.092e-05/1.924, allocations: 15.94 kB / 0.8113 GB, free: 128 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04027/1.965, allocations: 24.74 MB / 0.8355 GB, free: 102.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.792e-05/1.965, allocations: 4.75 kB / 0.8355 GB, free: 102.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001836/1.966, allocations: 419.4 kB / 0.8359 GB, free: 102.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01538/1.982, allocations: 5.383 MB / 0.8412 GB, free: 97.14 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007667/1.983, allocations: 60.25 kB / 0.8412 GB, free: 97.08 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03361/2.016, allocations: 30.36 MB / 0.8709 GB, free: 66.51 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/2.016, allocations: 8 kB / 0.8709 GB, free: 66.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02642/2.043, allocations: 16.51 MB / 0.887 GB, free: 49.82 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001931/2.045, allocations: 0.7207 MB / 0.8877 GB, free: 49.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00188/2.047, allocations: 65.62 kB / 0.8878 GB, free: 49.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004175/2.051, allocations: 255.6 kB / 0.888 GB, free: 48.77 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001063/2.052, allocations: 246.6 kB / 0.8882 GB, free: 48.53 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003081/2.052, allocations: 91.66 kB / 0.8883 GB, free: 48.45 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007298/2.059, allocations: 4.618 MB / 0.8928 GB, free: 43.86 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.61e-07/2.06, allocations: 0 / 0.8928 GB, free: 43.86 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008873/2.068, allocations: 1.95 MB / 0.8947 GB, free: 41.92 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.02742/2.096, allocations: 17.22 MB / 0.9116 GB, free: 24.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.015/2.111, allocations: 10.52 MB / 0.9218 GB, free: 13.94 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/2.111, allocations: 4 kB / 0.9219 GB, free: 13.94 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007153/2.118, allocations: 4.693 MB / 0.9264 GB, free: 9.191 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006301/2.124, allocations: 1.079 MB / 0.9275 GB, free: 8.121 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3378/2.462, allocations: 91.62 MB / 1.017 GB, free: 127.6 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005218/2.467, allocations: 5.533 MB / 1.022 GB, free: 122.1 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.004935/2.472, allocations: 2.621 MB / 1.025 GB, free: 119.5 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003557/2.476, allocations: 3.737 MB / 1.029 GB, free: 115.7 MB / 0.5451 GB Notification: Performance of SimCode: time 1.272e-06/2.476, allocations: 4 kB / 1.029 GB, free: 115.7 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4155/2.892, allocations: 157.4 MB / 1.182 GB, free: 152.8 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.57/41.46, allocations: 6.125 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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