Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 107.1 kB / 17.59 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 192 kB / 18.51 MB, free: 4.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.247/1.247, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 51.92 kB / 280.8 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07291/0.07405, allocations: 46.62 MB / 327.4 MB, free: 4.402 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003096/0.07718, allocations: 2.341 MB / 329.7 MB, free: 2.035 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008104/0.07801, allocations: 0.6242 MB / 330.3 MB, free: 1.402 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.07812, allocations: 4 kB / 330.3 MB, free: 1.398 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001295/0.07826, allocations: 39.59 kB / 330.4 MB, free: 1.359 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001343/0.0784, allocations: 71.33 kB / 330.5 MB, free: 1.289 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001718/0.07858, allocations: 55.88 kB / 330.5 MB, free: 1.234 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002364/0.07883, allocations: 278.7 kB / 330.8 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001747/0.07901, allocations: 98.75 kB / 330.9 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.07914, allocations: 111.6 kB / 331 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.07928, allocations: 115.5 kB / 331.1 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.064e-05/0.07931, allocations: 20 kB / 331.1 MB, free: 0.625 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.613e-05/0.07935, allocations: 20 kB / 331.1 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.081e-05/0.0794, allocations: 51.83 kB / 331.2 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.769e-05/0.0795, allocations: 123.3 kB / 331.3 MB, free: 444 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002064/0.07971, allocations: 255.3 kB / 331.6 MB, free: 188 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.07972, allocations: 4 kB / 331.6 MB, free: 184 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.07973, allocations: 0 / 331.6 MB, free: 184 kB / 270.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.07974, allocations: 0 / 331.6 MB, free: 184 kB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0006284/0.08037, allocations: 0.5184 MB / 332.1 MB, free: 15.61 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.08042, allocations: 15.89 kB / 332.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.15e-05/0.08048, allocations: 70.66 kB / 332.2 MB, free: 15.52 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.37e-05/0.08052, allocations: 28.59 kB / 332.2 MB, free: 15.49 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002115/0.08074, allocations: 236.6 kB / 332.4 MB, free: 15.22 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.845e-05/0.08077, allocations: 24.75 kB / 332.4 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.839e-05/0.08081, allocations: 24.28 kB / 332.5 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000298/0.08111, allocations: 195.4 kB / 332.7 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.08114, allocations: 0 / 332.7 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.777e-05/0.08116, allocations: 12 kB / 332.7 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.08117, allocations: 4 kB / 332.7 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000243/0.08142, allocations: 145.6 kB / 332.8 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007951/0.08222, allocations: 0.6268 MB / 333.4 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002557/0.08249, allocations: 178.5 kB / 333.6 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001469/0.08265, allocations: 102.1 kB / 333.7 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.08267, allocations: 4 kB / 333.7 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.243e-05/0.0827, allocations: 38.59 kB / 333.8 MB, free: 13.8 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.282e-06/0.08271, allocations: 0 / 333.8 MB, free: 13.8 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.001609/0.08432, allocations: 1.069 MB / 334.8 MB, free: 12.64 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.956e-05/0.08436, allocations: 63.28 kB / 334.9 MB, free: 12.57 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.0845, allocations: 186.9 kB / 335.1 MB, free: 12.38 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.08453, allocations: 33.7 kB / 335.1 MB, free: 12.34 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.494e-05/0.0846, allocations: 136.7 kB / 335.2 MB, free: 12.2 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.904e-05/0.08468, allocations: 114.3 kB / 335.4 MB, free: 12.09 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.931e-05/0.08475, allocations: 53.7 kB / 335.4 MB, free: 12.03 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.802e-05/0.08484, allocations: 330.8 kB / 335.7 MB, free: 11.7 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.08498, allocations: 71.97 kB / 335.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001447/0.08513, allocations: 110.3 kB / 335.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002727/0.08541, allocations: 191.5 kB / 336.1 MB, free: 11.31 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.08542, allocations: 0 / 336.1 MB, free: 11.31 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000426/0.08585, allocations: 295.1 kB / 336.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.08588, allocations: 8 kB / 336.4 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.08589, allocations: 0 / 336.4 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001538/0.08605, allocations: 44.83 kB / 336.4 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002321/0.0863, allocations: 59.91 kB / 336.5 MB, free: 10.9 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001267/0.08757, allocations: 1.744 MB / 338.2 MB, free: 9.016 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.08769, allocations: 12.02 kB / 338.2 MB, free: 9.004 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.08772, allocations: 12 kB / 338.3 MB, free: 8.992 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001039/0.08783, allocations: 133.8 kB / 338.4 MB, free: 8.852 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.204e-05/0.08788, allocations: 27.69 kB / 338.4 MB, free: 8.824 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.832e-05/0.08793, allocations: 30.64 kB / 338.4 MB, free: 8.797 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.08794, allocations: 4 kB / 338.5 MB, free: 8.793 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.08795, allocations: 64 / 338.5 MB, free: 8.793 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.08796, allocations: 7.938 kB / 338.5 MB, free: 8.785 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009426/0.0889, allocations: 0.7891 MB / 339.2 MB, free: 7.918 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.08892, allocations: 0 / 339.2 MB, free: 7.918 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002417/0.08916, allocations: 55.97 kB / 339.3 MB, free: 7.863 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001023/0.08928, allocations: 36.83 kB / 339.3 MB, free: 7.824 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.0893, allocations: 8 kB / 339.3 MB, free: 7.816 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009513/0.09026, allocations: 1.489 MB / 340.8 MB, free: 6.188 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/0.09028, allocations: 7.922 kB / 340.8 MB, free: 6.18 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000575/0.09086, allocations: 486.5 kB / 341.3 MB, free: 5.676 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.563e-05/0.09092, allocations: 92.83 kB / 341.4 MB, free: 5.566 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.726e-05/0.09095, allocations: 8 kB / 341.4 MB, free: 5.559 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.09108, allocations: 8 kB / 341.4 MB, free: 5.551 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.166e-05/0.09114, allocations: 24.02 kB / 341.4 MB, free: 5.527 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.09116, allocations: 11.98 kB / 341.5 MB, free: 5.516 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.622e-05/0.09125, allocations: 131.2 kB / 341.6 MB, free: 5.387 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09126, allocations: 0 / 341.6 MB, free: 5.387 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003295/0.09159, allocations: 68 kB / 341.7 MB, free: 5.32 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000807/0.0924, allocations: 1.017 MB / 342.7 MB, free: 4.266 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000538/0.09295, allocations: 338.5 kB / 343 MB, free: 3.922 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.09297, allocations: 0 / 343 MB, free: 3.922 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002991/0.09327, allocations: 250.7 kB / 343.2 MB, free: 3.664 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004309/0.09371, allocations: 39.92 kB / 343.3 MB, free: 3.625 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002893/0.09662, allocations: 2.754 MB / 346 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002809/0.09691, allocations: 0.7561 MB / 346.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.571e-05/0.097, allocations: 22.28 kB / 346.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.943e-05/0.0971, allocations: 71.41 kB / 346.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.09711, allocations: 0 / 346.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.987/2.084, allocations: 5.135 MB / 352 MB, free: 10.69 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/13, allocations: 11.84 kB / 352 MB, free: 10.68 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,damper.phi_rel,damper.w_rel,inertia3.phi,inertia3.w Variables in the result:Jload,Jmotor,amplitude,damper.a_rel,damper.d,damper.flange_a.phi,damper.flange_a.tau,damper.flange_b.phi,damper.flange_b.tau,damper.lossPower,damper.phi_nominal,damper.phi_rel,damper.stateSelect,damper.tau,damper.useHeatPort,damper.w_rel,damping,der(damper.phi_rel),der(damper.w_rel),der(der(idealGear.phi_a)),der(der(idealGear.phi_b)),der(idealGear.phi_a),der(idealGear.phi_b),der(inertia1.phi),der(inertia1.w),der(inertia2.phi),der(inertia2.w),der(inertia3.phi),der(inertia3.w),fixed.flange.phi,fixed.flange.tau,fixed.phi0,freqHz,idealGear.flange_a.phi,idealGear.flange_a.tau,idealGear.flange_b.phi,idealGear.flange_b.tau,idealGear.phi_a,idealGear.phi_b,idealGear.ratio,idealGear.support.phi,idealGear.support.tau,idealGear.useSupport,inertia1.J,inertia1.a,inertia1.flange_a.phi,inertia1.flange_a.tau,inertia1.flange_b.phi,inertia1.flange_b.tau,inertia1.phi,inertia1.stateSelect,inertia1.w,inertia2.J,inertia2.a,inertia2.flange_a.phi,inertia2.flange_a.tau,inertia2.flange_b.phi,inertia2.flange_b.tau,inertia2.phi,inertia2.stateSelect,inertia2.w,inertia3.J,inertia3.a,inertia3.flange_a.phi,inertia3.flange_a.tau,inertia3.flange_b.phi,inertia3.flange_b.tau,inertia3.phi,inertia3.stateSelect,inertia3.w,ratio,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,spring.c,spring.flange_a.phi,spring.flange_a.tau,spring.flange_b.phi,spring.flange_b.tau,spring.phi_rel,spring.phi_rel0,spring.tau,time,torque.flange.phi,torque.flange.tau,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport