Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",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.001111/0.001111, allocations: 106.4 kB / 17.78 MB, free: 5.289 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.001104/0.001104, allocations: 187.1 kB / 18.7 MB, free: 4.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2065/0.2065, allocations: 44.19 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 71.88 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3474/0.3487, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003975/0.3527, allocations: 2.61 MB / 0.5209 GB, free: 1.453 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001729/0.3545, allocations: 0.6425 MB / 0.5216 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003091/0.3548, allocations: 4.688 kB / 0.5216 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000242/0.355, allocations: 46.02 kB / 0.5216 GB, free: 0.957 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002874/0.3554, allocations: 89.53 kB / 0.5217 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004288/0.3558, allocations: 85.91 kB / 0.5218 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005787/0.3564, allocations: 333.5 kB / 0.5221 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002991/0.3567, allocations: 81.84 kB / 0.5222 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002706/0.357, allocations: 129 kB / 0.5223 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002017/0.3572, allocations: 133.1 kB / 0.5224 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.601e-05/0.3573, allocations: 21.75 kB / 0.5225 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.264e-05/0.3573, allocations: 26.5 kB / 0.5225 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.672e-05/0.3574, allocations: 52.89 kB / 0.5225 GB, free: 480 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001499/0.3576, allocations: 151.1 kB / 0.5227 GB, free: 384 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004386/0.358, allocations: 303.3 kB / 0.523 GB, free: 256 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.358, allocations: 0 / 0.523 GB, free: 256 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.358, allocations: 5.062 kB / 0.523 GB, free: 252 kB / 382.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.358, allocations: 0 / 0.523 GB, free: 252 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001044/0.3591, allocations: 0.58 MB / 0.5235 GB, free: 15.76 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.3592, allocations: 10.09 kB / 0.5235 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.93e-05/0.3592, allocations: 60.84 kB / 0.5236 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.677e-05/0.3593, allocations: 31.97 kB / 0.5236 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005484/0.3599, allocations: 276.8 kB / 0.5239 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.485e-05/0.3599, allocations: 19.09 kB / 0.5239 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.053e-05/0.36, allocations: 35.14 kB / 0.524 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006678/0.3607, allocations: 276.3 kB / 0.5242 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.598e-05/0.3607, allocations: 7.188 kB / 0.5242 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.705e-05/0.3608, allocations: 10.56 kB / 0.5242 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.3608, allocations: 11.64 kB / 0.5242 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005134/0.3613, allocations: 178 kB / 0.5244 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001942/0.3633, allocations: 1.303 MB / 0.5257 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000465/0.3637, allocations: 251.9 kB / 0.5259 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002239/0.364, allocations: 100.5 kB / 0.526 GB, free: 13.9 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.206e-05/0.364, allocations: 7.922 kB / 0.526 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.31e-05/0.3641, allocations: 41.45 kB / 0.5261 GB, free: 13.85 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.565e-06/0.3641, allocations: 0 / 0.5261 GB, free: 13.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.00288/0.3669, allocations: 1.568 MB / 0.5276 GB, free: 12.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.997e-05/0.367, allocations: 137.4 kB / 0.5277 GB, free: 12.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002572/0.3673, allocations: 217.4 kB / 0.5279 GB, free: 12.24 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.3673, allocations: 31.08 kB / 0.528 GB, free: 12.21 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/0.3675, allocations: 177.2 kB / 0.5281 GB, free: 12.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.3676, allocations: 118.7 kB / 0.5282 GB, free: 11.96 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.3677, allocations: 71.03 kB / 0.5283 GB, free: 11.92 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.3679, allocations: 338 kB / 0.5286 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002837/0.3682, allocations: 98.31 kB / 0.5287 GB, free: 11.57 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003798/0.3686, allocations: 235.5 kB / 0.529 GB, free: 11.38 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006758/0.3693, allocations: 378.7 kB / 0.5293 GB, free: 11.1 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.3693, allocations: 1.562 kB / 0.5293 GB, free: 11.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008157/0.3701, allocations: 398.1 kB / 0.5297 GB, free: 10.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.924e-05/0.3702, allocations: 11.42 kB / 0.5297 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.3702, allocations: 4.594 kB / 0.5297 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.3702, allocations: 6.344 kB / 0.5297 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003952/0.3706, allocations: 98.34 kB / 0.5298 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.723e-05/0.3706, allocations: 11.66 kB / 0.5298 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000219/0.3709, allocations: 32.8 kB / 0.5299 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.391e-05/0.3709, allocations: 18.25 kB / 0.5299 GB, free: 10.85 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001752/0.3711, allocations: 156.7 kB / 0.53 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.3712, allocations: 24.75 kB / 0.53 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.348e-05/0.3713, allocations: 37.05 kB / 0.5301 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.431e-06/0.3713, allocations: 2.969 kB / 0.5301 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.3713, allocations: 1.344 kB / 0.5301 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.3713, allocations: 5.219 kB / 0.5301 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001565/0.3729, allocations: 0.9795 MB / 0.531 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.3729, allocations: 10.62 kB / 0.5311 GB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003785/0.3733, allocations: 77.25 kB / 0.5311 GB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.3733, allocations: 2.75 kB / 0.5311 GB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.768e-05/0.3733, allocations: 15.25 kB / 0.5311 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.051e-06/0.3733, allocations: 2.906 kB / 0.5312 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3733, allocations: 5.812 kB / 0.5312 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009754/0.3743, allocations: 0.7217 MB / 0.5319 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.667e-05/0.3744, allocations: 104.9 kB / 0.532 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.138e-05/0.3745, allocations: 15.53 kB / 0.532 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002876/0.3748, allocations: 18.73 kB / 0.532 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.3749, allocations: 23.38 kB / 0.532 GB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.181e-05/0.3749, allocations: 11.06 kB / 0.532 GB, free: 9.102 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001533/0.3751, allocations: 157.3 kB / 0.5322 GB, free: 8.984 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3751, allocations: 4 kB / 0.5322 GB, free: 8.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004925/0.3756, allocations: 67.94 kB / 0.5322 GB, free: 8.969 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001321/0.3769, allocations: 1.268 MB / 0.5335 GB, free: 7.887 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006563/0.3776, allocations: 287 kB / 0.5338 GB, free: 7.766 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3776, allocations: 0 / 0.5338 GB, free: 7.766 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002882/0.3779, allocations: 134.7 kB / 0.5339 GB, free: 7.711 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006471/0.3785, allocations: 45.12 kB / 0.5339 GB, free: 7.688 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004626/0.3832, allocations: 3.472 MB / 0.5373 GB, free: 4.852 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.3836, allocations: 0.7749 MB / 0.5381 GB, free: 4.113 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001496/0.3838, allocations: 33.48 kB / 0.5381 GB, free: 4.094 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/0.3839, allocations: 92.31 kB / 0.5382 GB, free: 4.02 MB / 398.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3839, allocations: 0 / 0.5382 GB, free: 4.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02679/0.4107, allocations: 5.416 MB / 0.5435 GB, free: 1.305 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.377/8.788, allocations: 11.41 kB / 0.5435 GB, free: 1.297 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,speed1.phi,speed1.w,speed2.phi,speed3.s,speed3.v,speed4.s Variables in the result:der(inertia2.w),der(mass1.s),der(mass1.v),der(mass2.s),der(mass2.v),der(speed1.phi),der(speed1.w),der(speed2.phi),der(speed3.s),der(speed3.v),der(speed4.s),der(speed4.v),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,mass1.L,mass1.a,mass1.flange_a.f,mass1.flange_a.s,mass1.flange_b.f,mass1.flange_b.s,mass1.m,mass1.s,mass1.stateSelect,mass1.v,mass2.L,mass2.a,mass2.flange_a.f,mass2.flange_a.s,mass2.flange_b.f,mass2.flange_b.s,mass2.m,mass2.s,mass2.stateSelect,mass2.v,sine2.amplitude,sine2.f,sine2.offset,sine2.phase,sine2.startTime,sine2.y,sine4.amplitude,sine4.f,sine4.offset,sine4.phase,sine4.startTime,sine4.y,speed1.a,speed1.exact,speed1.f_crit,speed1.flange.phi,speed1.flange.tau,speed1.phi,speed1.useSupport,speed1.w,speed1.w_ref,speed2.a,speed2.exact,speed2.f_crit,speed2.flange.phi,speed2.flange.tau,speed2.phi,speed2.useSupport,speed2.w,speed2.w_ref,speed3.a,speed3.exact,speed3.f_crit,speed3.flange.f,speed3.flange.s,speed3.s,speed3.useSupport,speed3.v,speed3.v_ref,speed4.a,speed4.exact,speed4.f_crit,speed4.flange.f,speed4.flange.s,speed4.s,speed4.useSupport,speed4.v,speed4.v_ref,step.height,step.offset,step.startTime,step.y,step1.height,step1.offset,step1.startTime,step1.y,time