Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.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.Backlash,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008988/0.0008989, allocations: 92.89 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00105/0.00105, allocations: 203.3 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.189/1.189, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001924/0.0001922, allocations: 4 kB / 307.8 MB, free: 0.7461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07665/0.07686, allocations: 51.53 MB / 359.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.002188/0.07908, allocations: 2.137 MB / 361.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.08029, allocations: 0.7523 MB / 362.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.08044, allocations: 7.938 kB / 362.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001015/0.08055, allocations: 31.77 kB / 362.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002006/0.08076, allocations: 87.25 kB / 362.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002812/0.08105, allocations: 115.9 kB / 362.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003618/0.08141, allocations: 442.2 kB / 362.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.08157, allocations: 81.19 kB / 363 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001931/0.08177, allocations: 163.4 kB / 363.2 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001964/0.08198, allocations: 187.2 kB / 363.3 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.153e-05/0.08202, allocations: 20 kB / 363.4 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.525e-05/0.08208, allocations: 20 kB / 363.4 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.907e-05/0.08214, allocations: 75.72 kB / 363.5 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001431/0.08229, allocations: 177 kB / 363.6 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002866/0.08259, allocations: 390.8 kB / 364 MB, free: 8.531 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.08259, allocations: 0 / 364 MB, free: 8.531 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.0826, allocations: 0 / 364 MB, free: 8.531 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.08261, allocations: 0 / 364 MB, free: 8.531 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001328/0.08394, allocations: 0.6668 MB / 364.7 MB, free: 7.816 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.08399, allocations: 8.031 kB / 364.7 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.072e-05/0.08406, allocations: 62.73 kB / 364.7 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.415e-05/0.08413, allocations: 36.56 kB / 364.8 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002762/0.08442, allocations: 275.5 kB / 365 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003394/0.08476, allocations: 140 kB / 365.2 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.843e-05/0.08483, allocations: 31.91 kB / 365.2 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008546/0.08569, allocations: 415.2 kB / 365.6 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.08572, allocations: 0 / 365.6 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.119e-05/0.08575, allocations: 12 kB / 365.6 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.08577, allocations: 4 kB / 365.6 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001253/0.08703, allocations: 463.5 kB / 366.1 MB, free: 6.328 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001109/0.08815, allocations: 0.962 MB / 367.1 MB, free: 5.305 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.08919, allocations: 467.5 kB / 367.5 MB, free: 4.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006019/0.0898, allocations: 246.4 kB / 367.7 MB, free: 4.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.08983, allocations: 11.94 kB / 367.8 MB, free: 4.559 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.166e-05/0.08986, allocations: 38.5 kB / 367.8 MB, free: 4.512 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.443e-06/0.08986, allocations: 0 / 367.8 MB, free: 4.512 MB / 302.1 MB Notification: Performance of matching and sorting (n=38): time 0.004588/0.09446, allocations: 2.511 MB / 370.3 MB, free: 1.738 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/0.09451, allocations: 106.8 kB / 370.4 MB, free: 1.609 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000166/0.09468, allocations: 207.2 kB / 370.6 MB, free: 1.395 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.2e-05/0.09472, allocations: 37.7 kB / 370.7 MB, free: 1.352 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.869e-05/0.09481, allocations: 148.6 kB / 370.8 MB, free: 1.203 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.02e-05/0.0949, allocations: 141.9 kB / 370.9 MB, free: 1.062 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.54e-05/0.09497, allocations: 41.7 kB / 371 MB, free: 1.016 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.137e-05/0.09506, allocations: 330.8 kB / 371.3 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002908/0.09536, allocations: 112.8 kB / 371.4 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003136/0.09568, allocations: 177.4 kB / 371.6 MB, free: 392 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005996/0.09629, allocations: 291.7 kB / 371.9 MB, free: 84 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.0963, allocations: 0 / 371.9 MB, free: 84 kB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.1304/0.2267, allocations: 380.2 kB / 372.2 MB, free: 19.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.2268, allocations: 6.531 kB / 372.2 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.2268, allocations: 1.25 kB / 372.2 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.2268, allocations: 3.344 kB / 372.3 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007194/0.2275, allocations: 172.1 kB / 372.4 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.2276, allocations: 3.656 kB / 372.4 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/0.2278, allocations: 29.5 kB / 372.5 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.299e-05/0.2278, allocations: 15.59 kB / 372.5 MB, free: 19.31 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (47): * Single equations (assignments): 47 * 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.0001378/0.228, allocations: 152.5 kB / 372.6 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.351e-05/0.2281, allocations: 27.81 kB / 372.6 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.988e-05/0.2282, allocations: 36.34 kB / 372.7 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.2282, allocations: 6.141 kB / 372.7 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.2282, allocations: 2.688 kB / 372.7 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.2282, allocations: 1.547 kB / 372.7 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002219/0.2304, allocations: 1.393 MB / 374.1 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-06/0.2305, allocations: 2.031 kB / 374.1 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008354/0.2313, allocations: 202.7 kB / 374.3 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.2313, allocations: 5.141 kB / 374.3 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.833e-05/0.2313, allocations: 17.78 kB / 374.3 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.099e-06/0.2314, allocations: 3.656 kB / 374.3 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.2314, allocations: 2.406 kB / 374.3 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001955/0.2333, allocations: 1.048 MB / 375.4 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.2334, allocations: 129.6 kB / 375.5 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.943e-05/0.2335, allocations: 13.16 kB / 375.5 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004202/0.2339, allocations: 59.86 kB / 375.6 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.855e-05/0.234, allocations: 48.39 kB / 375.6 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-05/0.2341, allocations: 16.16 kB / 375.6 MB, free: 18.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001126/0.2342, allocations: 151.5 kB / 375.8 MB, free: 18.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2342, allocations: 0 / 375.8 MB, free: 18.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004222/0.2346, allocations: 82.19 kB / 375.8 MB, free: 18.03 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (elastoBacklash2.phi_rel,elastoBacklash2.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,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 (38): * Single equations (assignments): 38 * 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.002067/0.2367, allocations: 1.599 MB / 377.4 MB, free: 17.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009406/0.2376, allocations: 414.1 kB / 377.9 MB, free: 17.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2377, allocations: 3.5 kB / 377.9 MB, free: 17.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006646/0.2383, allocations: 278.1 kB / 378.1 MB, free: 17.1 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007053/0.239, allocations: 75.33 kB / 378.2 MB, free: 17.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007149/0.2462, allocations: 4.231 MB / 382.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002028/0.2464, allocations: 0.7719 MB / 383.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001697/0.2466, allocations: 40.48 kB / 383.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001644/0.2468, allocations: 95.14 kB / 383.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2468, allocations: 0 / 383.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04569/0.2925, allocations: 6.424 MB / 389.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001363/0.2926, allocations: 198.6 kB / 390 MB, free: 11.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.796/2.088, allocations: 3.938 kB / 390 MB, free: 11.77 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Backlash/Backlash.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,elastoBacklash.phi_rel,elastoBacklash.w_rel,springDamper.phi_rel,springDamper.w_rel Variables in the result:der(elastoBacklash.phi_rel),der(elastoBacklash.w_rel),der(elastoBacklash2.phi_rel),der(elastoBacklash2.w_rel),der(inertia1.phi),der(inertia1.w),der(inertia2.phi),der(inertia2.w),der(inertia3.phi),der(inertia3.w),der(springDamper.phi_rel),der(springDamper.w_rel),elastoBacklash.a_rel,elastoBacklash.b,elastoBacklash.c,elastoBacklash.d,elastoBacklash.flange_a.phi,elastoBacklash.flange_a.tau,elastoBacklash.flange_b.phi,elastoBacklash.flange_b.tau,elastoBacklash.lossPower,elastoBacklash.phi_nominal,elastoBacklash.phi_rel,elastoBacklash.phi_rel0,elastoBacklash.stateSelect,elastoBacklash.tau,elastoBacklash.useHeatPort,elastoBacklash.w_rel,elastoBacklash2.a_rel,elastoBacklash2.b,elastoBacklash2.c,elastoBacklash2.d,elastoBacklash2.flange_a.phi,elastoBacklash2.flange_a.tau,elastoBacklash2.flange_b.phi,elastoBacklash2.flange_b.tau,elastoBacklash2.lossPower,elastoBacklash2.phi_nominal,elastoBacklash2.phi_rel,elastoBacklash2.phi_rel0,elastoBacklash2.stateSelect,elastoBacklash2.tau,elastoBacklash2.useHeatPort,elastoBacklash2.w_rel,fixed1.flange.phi,fixed1.flange.tau,fixed1.phi0,fixed2.flange.phi,fixed2.flange.tau,fixed2.phi0,fixed3.flange.phi,fixed3.flange.tau,fixed3.phi0,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,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