Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_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.001239/0.001239, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.001141/0.001141, allocations: 195 kB / 18 MB, free: 5.105 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.391/1.391, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001021/0.001021, allocations: 43.94 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2459, allocations: 49.44 MB / 400.2 MB, free: 8.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003582/0.2495, allocations: 2.356 MB / 402.6 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001076/0.2506, allocations: 0.5765 MB / 403.2 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001509/0.2508, allocations: 4 kB / 403.2 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001624/0.251, allocations: 35.66 kB / 403.2 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001831/0.2512, allocations: 79.27 kB / 403.3 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002205/0.2514, allocations: 59.92 kB / 403.3 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003084/0.2517, allocations: 270.7 kB / 403.6 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002269/0.252, allocations: 106.7 kB / 403.7 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001631/0.2521, allocations: 107.6 kB / 403.8 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001644/0.2523, allocations: 119.4 kB / 403.9 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.9e-05/0.2524, allocations: 20 kB / 403.9 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.792e-05/0.2524, allocations: 20 kB / 404 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.71e-05/0.2525, allocations: 47.83 kB / 404 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.2526, allocations: 119.4 kB / 404.1 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00031/0.2529, allocations: 264.8 kB / 404.4 MB, free: 4.793 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2529, allocations: 0 / 404.4 MB, free: 4.793 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.186e-05/0.2529, allocations: 0 / 404.4 MB, free: 4.793 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.2529, allocations: 7.938 kB / 404.4 MB, free: 4.785 MB / 318.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.0007605/0.2537, allocations: 0.5223 MB / 404.9 MB, free: 4.215 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.2537, allocations: 15.89 kB / 404.9 MB, free: 4.199 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.176e-05/0.2538, allocations: 58.73 kB / 405 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.155e-05/0.2539, allocations: 24.66 kB / 405 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003403/0.2542, allocations: 241.3 kB / 405.2 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.2542, allocations: 20.81 kB / 405.3 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.153e-05/0.2543, allocations: 24.38 kB / 405.3 MB, free: 3.785 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003375/0.2546, allocations: 195.3 kB / 405.5 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/0.2547, allocations: 11.89 kB / 405.5 MB, free: 3.582 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.105e-05/0.2547, allocations: 8 kB / 405.5 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.248e-06/0.2547, allocations: 8 kB / 405.5 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000263/0.255, allocations: 133.7 kB / 405.6 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009295/0.2559, allocations: 0.6229 MB / 406.3 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002886/0.2562, allocations: 178.5 kB / 406.4 MB, free: 2.574 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001599/0.2564, allocations: 104.8 kB / 406.5 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.679e-05/0.2564, allocations: 0 / 406.5 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.377e-05/0.2564, allocations: 42.56 kB / 406.6 MB, free: 2.418 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.072e-06/0.2564, allocations: 0 / 406.6 MB, free: 2.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.00184/0.2583, allocations: 1.064 MB / 407.6 MB, free: 1.266 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.196e-05/0.2583, allocations: 55.34 kB / 407.7 MB, free: 1.199 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001623/0.2585, allocations: 187.9 kB / 407.9 MB, free: 1.004 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.046e-05/0.2585, allocations: 29.7 kB / 407.9 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.319e-05/0.2586, allocations: 140.7 kB / 408 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.988e-05/0.2587, allocations: 118.3 kB / 408.2 MB, free: 0.707 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.464e-05/0.2588, allocations: 53.7 kB / 408.2 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.2589, allocations: 326.8 kB / 408.5 MB, free: 328 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/0.2591, allocations: 75.95 kB / 408.6 MB, free: 252 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/0.2592, allocations: 111.6 kB / 408.7 MB, free: 132 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003037/0.2595, allocations: 189.4 kB / 408.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.2595, allocations: 3.938 kB / 408.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004724/0.26, allocations: 306.2 kB / 409.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.26, allocations: 4 kB / 409.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.2601, allocations: 4 kB / 409.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001607/0.2602, allocations: 44.77 kB / 409.3 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002334/0.2605, allocations: 59.91 kB / 409.3 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001433/0.2619, allocations: 1.736 MB / 411 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001129/0.262, allocations: 12.06 kB / 411.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.2621, allocations: 11.98 kB / 411.1 MB, free: 13.61 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.0001287/0.2622, allocations: 137.8 kB / 411.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.466e-05/0.2622, allocations: 27.66 kB / 411.2 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.399e-05/0.2623, allocations: 26.66 kB / 411.3 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.2623, allocations: 3.984 kB / 411.3 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2623, allocations: 4 kB / 411.3 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.2623, allocations: 7.984 kB / 411.3 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001044/0.2634, allocations: 0.7736 MB / 412.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.2634, allocations: 4 kB / 412.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002501/0.2637, allocations: 60 kB / 412.1 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001126/0.2638, allocations: 37.02 kB / 412.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/0.2638, allocations: 12 kB / 412.2 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001106/0.2649, allocations: 1.477 MB / 413.6 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2649, allocations: 0 / 413.6 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006253/0.2656, allocations: 482.5 kB / 414.1 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.302e-05/0.2657, allocations: 100.9 kB / 414.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.404e-05/0.2657, allocations: 4 kB / 414.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001276/0.2658, allocations: 8 kB / 414.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.892e-05/0.2659, allocations: 27.97 kB / 414.2 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.2659, allocations: 16.23 kB / 414.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001124/0.266, allocations: 131.2 kB / 414.4 MB, free: 10.01 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.603e-06/0.266, allocations: 0 / 414.4 MB, free: 10.01 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003543/0.2664, allocations: 67.94 kB / 414.5 MB, free: 9.941 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.0009674/0.2674, allocations: 1.022 MB / 415.5 MB, free: 8.883 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000577/0.268, allocations: 339.7 kB / 415.8 MB, free: 8.539 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.268, allocations: 4.125 kB / 415.8 MB, free: 8.535 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003199/0.2683, allocations: 238.4 kB / 416 MB, free: 8.289 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004299/0.2687, allocations: 54.08 kB / 416.1 MB, free: 8.238 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003215/0.272, allocations: 2.746 MB / 418.8 MB, free: 5.375 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.2723, allocations: 0.7563 MB / 419.6 MB, free: 4.594 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.122e-05/0.2724, allocations: 18.3 kB / 419.6 MB, free: 4.578 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.2725, allocations: 79.41 kB / 419.7 MB, free: 4.5 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2725, allocations: 4 kB / 419.7 MB, free: 4.496 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02518/0.2977, allocations: 5.352 MB / 425.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.351/9.648, allocations: 4 kB / 425.1 MB, free: 15.25 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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.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