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.001019/0.001019, allocations: 103.3 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001252/0.001252, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.239/1.239, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001088/0.001088, allocations: 59.5 kB / 306.3 MB, free: 0.9805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09049/0.09159, allocations: 50.54 MB / 356.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003469/0.0951, allocations: 2.403 MB / 359.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009975/0.09612, allocations: 0.6466 MB / 359.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.09625, allocations: 4 kB / 359.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.0964, allocations: 27.78 kB / 360 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001335/0.09654, allocations: 71.45 kB / 360 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001979/0.09675, allocations: 55.94 kB / 360.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002293/0.09698, allocations: 262.7 kB / 360.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001716/0.09716, allocations: 87.28 kB / 360.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001623/0.09733, allocations: 115.5 kB / 360.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.09746, allocations: 111.5 kB / 360.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.647e-05/0.0975, allocations: 16 kB / 360.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.59e-05/0.09757, allocations: 20 kB / 360.7 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.253e-05/0.09761, allocations: 39.84 kB / 360.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.634e-05/0.09771, allocations: 115.4 kB / 360.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002236/0.09794, allocations: 259.2 kB / 361.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.09795, allocations: 0 / 361.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.11e-07/0.09795, allocations: 0 / 361.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.09796, allocations: 0 / 361.1 MB, free: 10.19 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.0006965/0.09867, allocations: 0.5225 MB / 361.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.09871, allocations: 8.031 kB / 361.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.005e-05/0.09878, allocations: 58.72 kB / 361.7 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001624/0.09895, allocations: 28.66 kB / 361.7 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000259/0.09921, allocations: 249.2 kB / 362 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.09924, allocations: 16.81 kB / 362 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.231e-05/0.0993, allocations: 36.34 kB / 362 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/0.09964, allocations: 195.4 kB / 362.2 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.09967, allocations: 3.906 kB / 362.2 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.942e-05/0.09969, allocations: 8 kB / 362.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.555e-06/0.0997, allocations: 4 kB / 362.2 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002499/0.09996, allocations: 137.7 kB / 362.4 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008212/0.1008, allocations: 0.6268 MB / 363 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002745/0.1011, allocations: 186.4 kB / 363.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.1012, allocations: 100.8 kB / 363.3 MB, free: 7.863 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/0.1013, allocations: 7.984 kB / 363.3 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.1013, allocations: 38.5 kB / 363.3 MB, free: 7.809 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.393e-06/0.1013, allocations: 3.938 kB / 363.3 MB, free: 7.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001722/0.103, allocations: 1.058 MB / 364.4 MB, free: 6.656 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.1031, allocations: 63.33 kB / 364.4 MB, free: 6.582 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.1032, allocations: 183.1 kB / 364.6 MB, free: 6.395 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/0.1033, allocations: 33.7 kB / 364.6 MB, free: 6.355 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.36e-05/0.1033, allocations: 144.6 kB / 364.8 MB, free: 6.211 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.787e-05/0.1034, allocations: 114.3 kB / 364.9 MB, free: 6.098 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.854e-05/0.1035, allocations: 53.7 kB / 364.9 MB, free: 6.039 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.354e-05/0.1036, allocations: 334.8 kB / 365.3 MB, free: 5.703 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.1037, allocations: 71.72 kB / 365.3 MB, free: 5.633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001473/0.1039, allocations: 106.8 kB / 365.4 MB, free: 5.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003069/0.1042, allocations: 197 kB / 365.6 MB, free: 5.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1042, allocations: 0 / 365.6 MB, free: 5.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004889/0.1047, allocations: 287.2 kB / 365.9 MB, free: 5.031 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.1047, allocations: 6.656 kB / 365.9 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.1047, allocations: 3.984 kB / 365.9 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001886/0.1049, allocations: 48.91 kB / 366 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002417/0.1052, allocations: 59.91 kB / 366 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00136/0.1066, allocations: 1.557 MB / 367.6 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/0.1067, allocations: 11.98 kB / 367.6 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.659e-05/0.1067, allocations: 8 kB / 367.6 MB, free: 3.199 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.0001332/0.1069, allocations: 142.8 kB / 367.8 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.459e-05/0.1069, allocations: 23.72 kB / 367.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.521e-05/0.107, allocations: 34.66 kB / 367.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.107, allocations: 11.98 kB / 367.8 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.107, allocations: 0 / 367.8 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.107, allocations: 0 / 367.8 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.108, allocations: 0.7819 MB / 368.6 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.108, allocations: 3.938 kB / 368.6 MB, free: 2.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002431/0.1083, allocations: 64.09 kB / 368.7 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001049/0.1084, allocations: 32.83 kB / 368.7 MB, free: 2.023 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.1084, allocations: 12 kB / 368.7 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009101/0.1093, allocations: 1.378 MB / 370.1 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1094, allocations: 3.938 kB / 370.1 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1513/0.2607, allocations: 483.4 kB / 370.6 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.914e-05/0.2608, allocations: 94.83 kB / 370.7 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.253e-05/0.2609, allocations: 9.625 kB / 370.7 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001823/0.2611, allocations: 11.92 kB / 370.7 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.449e-05/0.2612, allocations: 27.06 kB / 370.7 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.127e-05/0.2612, allocations: 7.812 kB / 370.7 MB, free: 19.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001218/0.2613, allocations: 134.6 kB / 370.8 MB, free: 19.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2613, allocations: 4.844 kB / 370.8 MB, free: 19.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005038/0.2618, allocations: 66.62 kB / 370.9 MB, free: 19.71 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.0008918/0.2627, allocations: 1.018 MB / 371.9 MB, free: 19.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005896/0.2633, allocations: 341.6 kB / 372.3 MB, free: 18.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2634, allocations: 3.594 kB / 372.3 MB, free: 18.92 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003161/0.2637, allocations: 239.2 kB / 372.5 MB, free: 18.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004643/0.2642, allocations: 41.47 kB / 372.5 MB, free: 18.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00306/0.2672, allocations: 2.844 MB / 375.4 MB, free: 17.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001924/0.2674, allocations: 0.7561 MB / 376.1 MB, free: 16.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.504e-05/0.2675, allocations: 27.73 kB / 376.2 MB, free: 16.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.743e-05/0.2676, allocations: 76.92 kB / 376.2 MB, free: 16.49 MB / 302.1 MB Notification: Performance of SimCode: time 7.92e-07/0.2676, allocations: 0 / 376.2 MB, free: 16.49 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03191/0.2996, allocations: 4.914 MB / 381.2 MB, free: 16 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000176/0.2998, allocations: 215.1 kB / 381.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.772/2.072, allocations: 0 / 381.4 MB, free: 15.74 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