Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.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.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00158/0.00158, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002058/0.002058, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2501, allocations: 50.54 MB / 408.7 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003633/0.2538, allocations: 2.37 MB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.2551, allocations: 0.6427 MB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001989/0.2553, allocations: 4 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001835/0.2555, allocations: 43.58 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002522/0.2558, allocations: 75.33 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003318/0.2561, allocations: 59.86 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000423/0.2565, allocations: 278.6 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002509/0.2568, allocations: 110.7 kB / 412.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000289/0.2571, allocations: 115.6 kB / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002335/0.2573, allocations: 111.5 kB / 412.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.983e-05/0.2574, allocations: 23.94 kB / 412.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.527e-05/0.2575, allocations: 28 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.979e-05/0.2576, allocations: 51.83 kB / 412.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001284/0.2577, allocations: 123.4 kB / 412.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003632/0.2581, allocations: 260.8 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.2581, allocations: 0 / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2581, allocations: 3.938 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.594e-05/0.2581, allocations: 7.938 kB / 413 MB, free: 13.22 MB / 334.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.0008942/0.259, allocations: 0.5224 MB / 413.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.2591, allocations: 8.031 kB / 413.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.897e-05/0.2591, allocations: 58.72 kB / 413.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001791/0.2593, allocations: 32.66 kB / 413.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004053/0.2597, allocations: 256.5 kB / 413.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.715e-05/0.2598, allocations: 20.75 kB / 413.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.418e-05/0.2598, allocations: 28.28 kB / 413.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003452/0.2602, allocations: 191.4 kB / 414.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.2602, allocations: 0 / 414.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/0.2602, allocations: 15.94 kB / 414.1 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.2603, allocations: 4 kB / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002734/0.2605, allocations: 141.7 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008874/0.2614, allocations: 0.6229 MB / 414.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002759/0.2617, allocations: 182.5 kB / 415.1 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001523/0.2619, allocations: 96.83 kB / 415.2 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.2619, allocations: 4 kB / 415.2 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.262, allocations: 34.56 kB / 415.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.473e-06/0.262, allocations: 0 / 415.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001927/0.2639, allocations: 1.071 MB / 416.3 MB, free: 9.691 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.18e-05/0.2639, allocations: 59.34 kB / 416.4 MB, free: 9.621 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/0.2641, allocations: 179.2 kB / 416.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.2641, allocations: 33.7 kB / 416.6 MB, free: 9.398 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.517e-05/0.2642, allocations: 136.7 kB / 416.7 MB, free: 9.258 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.334e-05/0.2643, allocations: 118.3 kB / 416.8 MB, free: 9.141 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.099e-05/0.2644, allocations: 49.7 kB / 416.9 MB, free: 9.086 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.2645, allocations: 338.8 kB / 417.2 MB, free: 8.746 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001391/0.2646, allocations: 67.97 kB / 417.3 MB, free: 8.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/0.2648, allocations: 106.8 kB / 417.4 MB, free: 8.566 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002884/0.2651, allocations: 189.6 kB / 417.5 MB, free: 8.375 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.2651, allocations: 4 kB / 417.5 MB, free: 8.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004729/0.2656, allocations: 299.1 kB / 417.8 MB, free: 8.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.2656, allocations: 4 kB / 417.8 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.2656, allocations: 0 / 417.8 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001723/0.2658, allocations: 44.84 kB / 417.9 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002376/0.266, allocations: 55.91 kB / 417.9 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001391/0.2675, allocations: 1.74 MB / 419.7 MB, free: 6.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001346/0.2676, allocations: 8.031 kB / 419.7 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.827e-05/0.2676, allocations: 12 kB / 419.7 MB, free: 6.07 MB / 334.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.0001319/0.2678, allocations: 141.7 kB / 419.8 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.633e-05/0.2678, allocations: 23.66 kB / 419.9 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.603e-05/0.2679, allocations: 34.58 kB / 419.9 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.808e-06/0.2679, allocations: 4 kB / 419.9 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.2679, allocations: 8.062 kB / 419.9 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.2679, allocations: 7.922 kB / 419.9 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/0.269, allocations: 0.7814 MB / 420.7 MB, free: 4.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.269, allocations: 4.094 kB / 420.7 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002645/0.2693, allocations: 68.08 kB / 420.8 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001193/0.2694, allocations: 32.84 kB / 420.8 MB, free: 4.879 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.328e-05/0.2694, allocations: 8 kB / 420.8 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/0.2705, allocations: 1.481 MB / 422.3 MB, free: 3.242 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.2705, allocations: 0 / 422.3 MB, free: 3.242 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006192/0.2711, allocations: 486.5 kB / 422.8 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.56e-05/0.2712, allocations: 100.8 kB / 422.9 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.55e-05/0.2712, allocations: 4 kB / 422.9 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.2714, allocations: 12.03 kB / 422.9 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.907e-05/0.2714, allocations: 27.91 kB / 422.9 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.2715, allocations: 8 kB / 422.9 MB, free: 2.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001046/0.2716, allocations: 136.3 kB / 423 MB, free: 2.438 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2716, allocations: 0 / 423 MB, free: 2.438 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003721/0.272, allocations: 64 kB / 423.1 MB, free: 2.375 MB / 334.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.0008853/0.2729, allocations: 1.028 MB / 424.1 MB, free: 1.309 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005833/0.2735, allocations: 342.6 kB / 424.5 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2735, allocations: 0 / 424.5 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003216/0.2738, allocations: 238.5 kB / 424.7 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004251/0.2742, allocations: 51.05 kB / 424.8 MB, free: 0.668 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003225/0.2775, allocations: 2.75 MB / 427.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.2778, allocations: 0.764 MB / 428.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.253e-05/0.2779, allocations: 18.3 kB / 428.3 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.278, allocations: 79.41 kB / 428.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.278, allocations: 0 / 428.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02657/0.3046, allocations: 5.381 MB / 433.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.624/9.929, allocations: 7.062 kB / 433.8 MB, free: 7.641 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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),f,fixed.flange.phi,fixed.flange.tau,fixed.phi0,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.continuous,sine.f,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