Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.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.ElasticBearing,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",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.001551/0.001551, allocations: 111.6 kB / 17.06 MB, free: 6.102 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.00181/0.00181, allocations: 199 kB / 18 MB, free: 5.18 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.309/1.309, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001043, allocations: 43.94 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2395, allocations: 49.43 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003643/0.2432, allocations: 2.424 MB / 402.6 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008667/0.2441, allocations: 0.5804 MB / 403.2 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001204/0.2442, allocations: 4 kB / 403.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.2444, allocations: 39.59 kB / 403.3 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001406/0.2446, allocations: 79.27 kB / 403.3 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001581/0.2447, allocations: 59.92 kB / 403.4 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002801/0.245, allocations: 298.6 kB / 403.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.2452, allocations: 102.9 kB / 403.8 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.2453, allocations: 123.6 kB / 403.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001548/0.2455, allocations: 119.5 kB / 404 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.485e-05/0.2455, allocations: 24 kB / 404.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.013e-05/0.2456, allocations: 24 kB / 404.1 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.416e-05/0.2456, allocations: 51.84 kB / 404.1 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.2458, allocations: 143.3 kB / 404.3 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002905/0.2461, allocations: 296.6 kB / 404.6 MB, free: 4.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.2461, allocations: 0 / 404.6 MB, free: 4.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2461, allocations: 3.938 kB / 404.6 MB, free: 4.477 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.2461, allocations: 0 / 404.6 MB, free: 4.477 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0007646/0.2469, allocations: 0.5412 MB / 405.1 MB, free: 3.891 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.2469, allocations: 12.03 kB / 405.1 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.735e-05/0.247, allocations: 62.72 kB / 405.2 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.601e-05/0.247, allocations: 28.56 kB / 405.2 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002594/0.2473, allocations: 242 kB / 405.4 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.941e-05/0.2473, allocations: 16.94 kB / 405.5 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.185e-05/0.2474, allocations: 39.78 kB / 405.5 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004162/0.2478, allocations: 224.9 kB / 405.7 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.2478, allocations: 4 kB / 405.7 MB, free: 3.227 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.124e-05/0.2479, allocations: 12 kB / 405.7 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.146e-06/0.2479, allocations: 8 kB / 405.7 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003699/0.2482, allocations: 178.1 kB / 405.9 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.2493, allocations: 0.75 MB / 406.7 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004372/0.2498, allocations: 214.5 kB / 406.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002038/0.25, allocations: 116.8 kB / 407 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.25, allocations: 4 kB / 407 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/0.25, allocations: 38.55 kB / 407 MB, free: 1.84 MB / 318.1 MB Notification: Performance of pre-optimization done (n=26): time 1.222e-06/0.2501, allocations: 0 / 407 MB, free: 1.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001633/0.2517, allocations: 0.9621 MB / 408 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.196e-05/0.2517, allocations: 51.41 kB / 408 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.2519, allocations: 154.7 kB / 408.2 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.2519, allocations: 29.7 kB / 408.2 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.428e-05/0.252, allocations: 148.5 kB / 408.4 MB, free: 384 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.321e-05/0.2521, allocations: 102.5 kB / 408.5 MB, free: 280 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.904e-05/0.2521, allocations: 49.7 kB / 408.5 MB, free: 224 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.2523, allocations: 334.8 kB / 408.8 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001661/0.2524, allocations: 75.95 kB / 408.9 MB, free: 15.81 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.2526, allocations: 119.1 kB / 409 MB, free: 15.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003525/0.253, allocations: 207.2 kB / 409.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.253, allocations: 0 / 409.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004311/0.2534, allocations: 261.3 kB / 409.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.2535, allocations: 12.09 kB / 409.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.2535, allocations: 0 / 409.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.2535, allocations: 4 kB / 409.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002636/0.2537, allocations: 75.89 kB / 409.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.595e-06/0.2538, allocations: 4 kB / 409.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.2539, allocations: 11.98 kB / 409.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.2539, allocations: 8 kB / 409.6 MB, free: 15.09 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (35): * Single equations (assignments): 35 * 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.0001054/0.254, allocations: 141.7 kB / 409.7 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.87e-05/0.2541, allocations: 31.66 kB / 409.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.981e-05/0.2541, allocations: 26.56 kB / 409.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.2541, allocations: 0 / 409.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2541, allocations: 0 / 409.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.2541, allocations: 7.984 kB / 409.8 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008388/0.255, allocations: 0.6546 MB / 410.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.255, allocations: 4 kB / 410.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003147/0.2553, allocations: 71.95 kB / 410.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.2553, allocations: 0 / 410.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.005e-05/0.2554, allocations: 11.94 kB / 410.5 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.2554, allocations: 0 / 410.5 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.2554, allocations: 7.938 kB / 410.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006166/0.256, allocations: 439.8 kB / 411 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.857e-05/0.2561, allocations: 92.83 kB / 411.1 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.901e-05/0.2561, allocations: 12.12 kB / 411.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.2562, allocations: 15.98 kB / 411.1 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.619e-05/0.2563, allocations: 11.98 kB / 411.1 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-05/0.2563, allocations: 16 kB / 411.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.546e-05/0.2564, allocations: 119.5 kB / 411.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.293e-06/0.2564, allocations: 0 / 411.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002818/0.2567, allocations: 63.94 kB / 411.3 MB, free: 13.28 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (shaft.phi,shaft.w,load.phi,load.w,springDamper.phi_rel,springDamper.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 (28): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008668/0.2576, allocations: 0.9734 MB / 412.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004106/0.258, allocations: 199.8 kB / 412.5 MB, free: 12.08 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.258, allocations: 0 / 412.5 MB, free: 12.08 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001972/0.2582, allocations: 116.2 kB / 412.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003895/0.2586, allocations: 39.91 kB / 412.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003137/0.2617, allocations: 2.659 MB / 415.3 MB, free: 9.145 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/0.2621, allocations: 0.7522 MB / 416 MB, free: 8.367 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.64e-05/0.2622, allocations: 21.94 kB / 416.1 MB, free: 8.344 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/0.2623, allocations: 71.42 kB / 416.1 MB, free: 8.273 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2623, allocations: 0 / 416.1 MB, free: 8.273 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02307/0.2854, allocations: 4.596 MB / 420.7 MB, free: 3.797 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.693/7.979, allocations: 11.92 kB / 420.7 MB, free: 3.785 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,load.phi,load.w,shaft.phi,shaft.w,springDamper.phi_rel,springDamper.w_rel Variables in the result:der(housing.phi),der(housing.w),der(load.phi),der(load.w),der(shaft.phi),der(shaft.w),der(springDamper.phi_rel),der(springDamper.w_rel),fixed.flange.phi,fixed.flange.tau,fixed.phi0,housing.J,housing.a,housing.flange_a.phi,housing.flange_a.tau,housing.flange_b.phi,housing.flange_b.tau,housing.phi,housing.stateSelect,housing.w,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,load.J,load.a,load.flange_a.phi,load.flange_a.tau,load.flange_b.phi,load.flange_b.tau,load.phi,load.stateSelect,load.w,multiSensor.flange_a.phi,multiSensor.flange_a.tau,multiSensor.flange_b.phi,multiSensor.flange_b.tau,multiSensor.power,multiSensor.tau,multiSensor.w,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,shaft.J,shaft.a,shaft.flange_a.phi,shaft.flange_a.tau,shaft.flange_b.phi,shaft.flange_b.tau,shaft.phi,shaft.stateSelect,shaft.w,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,springDamper.a_rel,springDamper.c,springDamper.d,springDamper.flange_a.phi,springDamper.flange_a.tau,springDamper.flange_b.phi,springDamper.flange_b.tau,springDamper.lossPower,springDamper.phi_nominal,springDamper.phi_rel,springDamper.phi_rel0,springDamper.stateSelect,springDamper.tau,springDamper.useHeatPort,springDamper.w_rel,time,torque.flange.phi,torque.flange.tau,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport