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.0007166/0.0007167, allocations: 99.03 kB / 17.35 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008566/0.0008566, allocations: 200.5 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.29/1.29, allocations: 227.7 MB / 246.8 MB, free: 11.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000211/0.000211, allocations: 8 kB / 307.8 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08869/0.08892, allocations: 51.52 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002325/0.09128, allocations: 2.048 MB / 361.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001078/0.09241, allocations: 0.6467 MB / 362.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.09257, allocations: 4 kB / 362.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001168/0.0927, allocations: 23.78 kB / 362.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001646/0.09287, allocations: 67.45 kB / 362.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000283/0.09316, allocations: 55.88 kB / 362.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002874/0.09348, allocations: 266.7 kB / 362.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001821/0.09367, allocations: 91.28 kB / 362.5 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001872/0.09387, allocations: 95.59 kB / 362.6 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.09402, allocations: 99.53 kB / 362.7 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.603e-05/0.09405, allocations: 15.94 kB / 362.8 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.876e-05/0.09412, allocations: 12 kB / 362.8 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.375e-05/0.09415, allocations: 39.84 kB / 362.8 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.09427, allocations: 145 kB / 362.9 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002286/0.09451, allocations: 247.2 kB / 363.2 MB, free: 9.332 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.09452, allocations: 4 kB / 363.2 MB, free: 9.328 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.09452, allocations: 0 / 363.2 MB, free: 9.328 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.09454, allocations: 0 / 363.2 MB, free: 9.328 MB / 302.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.0006687/0.09521, allocations: 483.1 kB / 363.7 MB, free: 8.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.09526, allocations: 16.03 kB / 363.7 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.661e-05/0.09532, allocations: 62.66 kB / 363.7 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001457/0.09548, allocations: 36.66 kB / 363.8 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002368/0.09572, allocations: 244.5 kB / 364 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.09574, allocations: 12.81 kB / 364 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.075e-05/0.09579, allocations: 24.36 kB / 364.1 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003286/0.09612, allocations: 199.4 kB / 364.2 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.09615, allocations: 0 / 364.2 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.995e-05/0.09617, allocations: 16 kB / 364.3 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.09619, allocations: 4 kB / 364.3 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000256/0.09645, allocations: 145.6 kB / 364.4 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009471/0.0974, allocations: 0.6346 MB / 365 MB, free: 7.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002795/0.09769, allocations: 186.5 kB / 365.2 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000158/0.09786, allocations: 104.8 kB / 365.3 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.09789, allocations: 7.938 kB / 365.3 MB, free: 7.016 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.077e-05/0.09792, allocations: 34.59 kB / 365.4 MB, free: 6.973 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.405e-06/0.09792, allocations: 0 / 365.4 MB, free: 6.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001793/0.09972, allocations: 1.079 MB / 366.4 MB, free: 5.809 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.09977, allocations: 67.28 kB / 366.5 MB, free: 5.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.09993, allocations: 182.2 kB / 366.7 MB, free: 5.543 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.09996, allocations: 37.69 kB / 366.7 MB, free: 5.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.047e-05/0.1, allocations: 136.6 kB / 366.9 MB, free: 5.363 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.394e-05/0.1001, allocations: 114.4 kB / 367 MB, free: 5.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.102e-05/0.1002, allocations: 33.7 kB / 367 MB, free: 5.211 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.893e-05/0.1003, allocations: 334.8 kB / 367.3 MB, free: 4.875 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001408/0.1004, allocations: 71.97 kB / 367.4 MB, free: 4.805 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002349/0.1007, allocations: 106.6 kB / 367.5 MB, free: 4.691 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000303/0.101, allocations: 201 kB / 367.7 MB, free: 4.488 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.101, allocations: 4 kB / 367.7 MB, free: 4.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004694/0.1015, allocations: 291.1 kB / 368 MB, free: 4.191 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.1015, allocations: 4 kB / 368 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.1015, allocations: 0 / 368 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001742/0.1017, allocations: 44.83 kB / 368 MB, free: 4.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002253/0.1019, allocations: 63.97 kB / 368.1 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001303/0.1032, allocations: 1.557 MB / 369.7 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001167/0.1034, allocations: 16.03 kB / 369.7 MB, free: 2.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.1034, allocations: 8 kB / 369.7 MB, free: 2.359 MB / 302.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.0001227/0.1035, allocations: 147.9 kB / 369.8 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.351e-05/0.1036, allocations: 27.7 kB / 369.9 MB, free: 2.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.248e-05/0.1036, allocations: 34.59 kB / 369.9 MB, free: 2.148 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.1036, allocations: 0 / 369.9 MB, free: 2.148 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1036, allocations: 8.062 kB / 369.9 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.1037, allocations: 3.984 kB / 369.9 MB, free: 2.137 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.1047, allocations: 0.7858 MB / 370.7 MB, free: 1.273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.1048, allocations: 7.875 kB / 370.7 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002419/0.105, allocations: 59.97 kB / 370.8 MB, free: 1.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001137/0.1051, allocations: 32.83 kB / 370.8 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.902e-05/0.1052, allocations: 8.094 kB / 370.8 MB, free: 1.164 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1455/0.2507, allocations: 1.37 MB / 372.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.2507, allocations: 2.312 kB / 372.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007984/0.2515, allocations: 494.2 kB / 372.6 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.983e-05/0.2516, allocations: 103.2 kB / 372.7 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.555e-05/0.2516, allocations: 7.281 kB / 372.8 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.2517, allocations: 10 kB / 372.8 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.563e-05/0.2518, allocations: 26.06 kB / 372.8 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.622e-05/0.2518, allocations: 10.2 kB / 372.8 MB, free: 17.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.253e-05/0.2519, allocations: 134 kB / 372.9 MB, free: 17.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2519, allocations: 1.25 kB / 372.9 MB, free: 17.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003664/0.2523, allocations: 66.94 kB / 373 MB, free: 17.73 MB / 302.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.000861/0.2532, allocations: 1.03 MB / 374 MB, free: 17.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005511/0.2537, allocations: 340.6 kB / 374.4 MB, free: 16.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.2537, allocations: 0 / 374.4 MB, free: 16.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002935/0.254, allocations: 242.6 kB / 374.6 MB, free: 16.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004336/0.2545, allocations: 51.16 kB / 374.6 MB, free: 16.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003229/0.2577, allocations: 2.938 MB / 377.6 MB, free: 15.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001571/0.2579, allocations: 0.7554 MB / 378.3 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.987e-05/0.258, allocations: 23.11 kB / 378.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.147e-05/0.2581, allocations: 75 kB / 378.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2581, allocations: 4 kB / 378.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0163/0.2744, allocations: 4.818 MB / 383.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001473/0.2746, allocations: 218 kB / 383.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.754/2.029, allocations: 0 / 383.5 MB, free: 13.75 MB / 302.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