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.001338/0.001338, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001512/0.001512, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001713/0.001713, allocations: 63.89 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.232, allocations: 50.54 MB / 408.8 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003488/0.2355, allocations: 2.459 MB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00136/0.2369, allocations: 0.7674 MB / 412 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.237, allocations: 4 kB / 412 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001503/0.2372, allocations: 51.52 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002187/0.2374, allocations: 99.09 kB / 412.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003289/0.2378, allocations: 123.8 kB / 412.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004789/0.2383, allocations: 466.2 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002077/0.2385, allocations: 92.86 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002343/0.2387, allocations: 183.4 kB / 413 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003107/0.239, allocations: 207.3 kB / 413.2 MB, free: 13 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.909e-05/0.2391, allocations: 40 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.927e-05/0.2392, allocations: 36 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.555e-05/0.2393, allocations: 83.75 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001831/0.2395, allocations: 175.2 kB / 413.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004631/0.2399, allocations: 421.4 kB / 414 MB, free: 12.26 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.24, allocations: 0 / 414 MB, free: 12.26 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.24, allocations: 0 / 414 MB, free: 12.26 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.124e-06/0.24, allocations: 4 kB / 414 MB, free: 12.26 MB / 334.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.001514/0.2415, allocations: 0.6898 MB / 414.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.2415, allocations: 8.031 kB / 414.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.101e-05/0.2416, allocations: 58.73 kB / 414.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.134e-05/0.2417, allocations: 36.75 kB / 414.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003834/0.2421, allocations: 276.8 kB / 415 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001084/0.2422, allocations: 84.08 kB / 415.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.766e-05/0.2423, allocations: 28 kB / 415.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009081/0.2432, allocations: 383.1 kB / 415.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.2432, allocations: 4 kB / 415.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.65e-05/0.2433, allocations: 8 kB / 415.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.2433, allocations: 8 kB / 415.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001244/0.2445, allocations: 395.1 kB / 415.9 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001344/0.2459, allocations: 0.9818 MB / 416.9 MB, free: 9.148 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/0.247, allocations: 407.5 kB / 417.3 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006448/0.2476, allocations: 218.4 kB / 417.5 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.2477, allocations: 0 / 417.5 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.2477, allocations: 38.56 kB / 417.6 MB, free: 8.453 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 1.162e-06/0.2477, allocations: 0 / 417.6 MB, free: 8.453 MB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.004957/0.2527, allocations: 2.324 MB / 419.9 MB, free: 5.867 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.55e-05/0.2528, allocations: 111.8 kB / 420 MB, free: 5.734 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002105/0.253, allocations: 203.2 kB / 420.2 MB, free: 5.527 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.586e-05/0.253, allocations: 37.69 kB / 420.2 MB, free: 5.484 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.2531, allocations: 148.8 kB / 420.4 MB, free: 5.336 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.2532, allocations: 146.8 kB / 420.5 MB, free: 5.191 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001382/0.2534, allocations: 70.08 kB / 420.6 MB, free: 5.117 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.2535, allocations: 338.8 kB / 420.9 MB, free: 4.777 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003211/0.2539, allocations: 112.8 kB / 421 MB, free: 4.664 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003355/0.2542, allocations: 165.5 kB / 421.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006551/0.2549, allocations: 292.2 kB / 421.5 MB, free: 4.188 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2549, allocations: 3.938 kB / 421.5 MB, free: 4.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008281/0.2557, allocations: 365.2 kB / 421.8 MB, free: 3.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.2558, allocations: 8 kB / 421.8 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.343e-06/0.2558, allocations: 0 / 421.8 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.2558, allocations: 11.92 kB / 421.9 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006903/0.2565, allocations: 147.9 kB / 422 MB, free: 3.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.2565, allocations: 4 kB / 422 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002117/0.2567, allocations: 19.98 kB / 422 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.191e-05/0.2568, allocations: 20 kB / 422 MB, free: 3.613 MB / 334.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.0001555/0.2569, allocations: 149.7 kB / 422.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.074e-05/0.257, allocations: 31.75 kB / 422.2 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.623e-05/0.2571, allocations: 33.52 kB / 422.2 MB, free: 3.395 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.2571, allocations: 8 kB / 422.3 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.2571, allocations: 0 / 422.3 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.2571, allocations: 3.984 kB / 422.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002369/0.2595, allocations: 1.32 MB / 423.6 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.2595, allocations: 4 kB / 423.6 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00083/0.2604, allocations: 164 kB / 423.7 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.86e-06/0.2604, allocations: 4 kB / 423.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.501e-05/0.2604, allocations: 19.92 kB / 423.8 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.438e-06/0.2604, allocations: 15.94 kB / 423.8 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.2604, allocations: 3.984 kB / 423.8 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00204/0.2625, allocations: 0.9558 MB / 424.7 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001425/0.2626, allocations: 128.9 kB / 424.9 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.218e-05/0.2627, allocations: 19.92 kB / 424.9 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004026/0.2631, allocations: 43.95 kB / 424.9 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.88e-05/0.2632, allocations: 35.95 kB / 425 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.713e-05/0.2632, allocations: 15.98 kB / 425 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001309/0.2634, allocations: 148.6 kB / 425.1 MB, free: 372 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.904e-06/0.2634, allocations: 4 kB / 425.1 MB, free: 368 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004405/0.2638, allocations: 87.94 kB / 425.2 MB, free: 280 kB / 334.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.002357/0.2662, allocations: 1.508 MB / 426.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009933/0.2672, allocations: 372 kB / 427.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.2672, allocations: 4 kB / 427.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006983/0.2679, allocations: 244 kB / 427.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006667/0.2686, allocations: 64.28 kB / 427.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008038/0.2767, allocations: 3.86 MB / 431.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003981/0.2771, allocations: 0.772 MB / 432 MB, free: 9.238 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001704/0.2773, allocations: 42.94 kB / 432.1 MB, free: 9.195 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001852/0.2775, allocations: 99.41 kB / 432.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2775, allocations: 0 / 432.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02941/0.3069, allocations: 7.116 MB / 439.3 MB, free: 2.102 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.092/8.399, allocations: 18.98 kB / 439.3 MB, free: 2.086 MB / 350.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.1.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