Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: translateModel(Modelica.Mechanics.Rotational.Examples.Backlash,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|elastoBacklash.phi_rel|elastoBacklash.w_rel|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Backlash") translateModel(Modelica.Mechanics.Rotational.Examples.Backlash,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|elastoBacklash.phi_rel|elastoBacklash.w_rel|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Backlash") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00176/0.00176, allocations: 105.6 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001987/0.001987, allocations: 208.1 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.441/1.441, allocations: 227.7 MB / 247.7 MB, free: 10.34 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 64.81 kB / 307.9 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1056, allocations: 50.54 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003981/0.1096, allocations: 2.452 MB / 360.9 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001515/0.1112, allocations: 0.7717 MB / 361.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.1114, allocations: 4 kB / 361.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001688/0.1115, allocations: 39.53 kB / 361.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002343/0.1118, allocations: 107.1 kB / 361.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003906/0.1122, allocations: 123.8 kB / 361.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004915/0.1127, allocations: 470.2 kB / 362.4 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002203/0.1129, allocations: 90.48 kB / 362.5 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002472/0.1132, allocations: 183.4 kB / 362.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002606/0.1134, allocations: 203.3 kB / 362.8 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.763e-05/0.1135, allocations: 40 kB / 362.9 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.783e-05/0.1136, allocations: 36 kB / 362.9 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.658e-05/0.1137, allocations: 95.72 kB / 363 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002038/0.1139, allocations: 179.2 kB / 363.2 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004611/0.1144, allocations: 411 kB / 363.6 MB, free: 8.773 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1144, allocations: 0 / 363.6 MB, free: 8.773 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1144, allocations: 3.938 kB / 363.6 MB, free: 8.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.924e-06/0.1144, allocations: 0 / 363.6 MB, free: 8.77 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.00169/0.1161, allocations: 0.6783 MB / 364.3 MB, free: 8.043 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.1161, allocations: 8.031 kB / 364.3 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.702e-05/0.1162, allocations: 36.56 kB / 364.3 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003869/0.1166, allocations: 268.5 kB / 364.6 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000393/0.117, allocations: 132.2 kB / 364.7 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.124e-05/0.1171, allocations: 31.91 kB / 364.7 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009445/0.1181, allocations: 379.2 kB / 365.1 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.1181, allocations: 0 / 365.1 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.678e-05/0.1181, allocations: 12 kB / 365.1 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.1182, allocations: 11.98 kB / 365.1 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001238/0.1194, allocations: 393.9 kB / 365.5 MB, free: 6.734 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001418/0.1208, allocations: 0.9657 MB / 366.5 MB, free: 5.711 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/0.122, allocations: 407.5 kB / 366.9 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006423/0.1226, allocations: 210.4 kB / 367.1 MB, free: 5.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.88e-05/0.1227, allocations: 11.98 kB / 367.1 MB, free: 5.059 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.141e-05/0.1227, allocations: 34.56 kB / 367.1 MB, free: 5.016 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.823e-06/0.1227, allocations: 4 kB / 367.1 MB, free: 5.012 MB / 302.1 MB Notification: Performance of matching and sorting (n=38): time 0.005237/0.128, allocations: 2.316 MB / 369.4 MB, free: 2.434 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.1281, allocations: 106.8 kB / 369.6 MB, free: 2.305 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002606/0.1284, allocations: 211.2 kB / 369.8 MB, free: 2.082 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.844e-05/0.1284, allocations: 29.7 kB / 369.8 MB, free: 2.047 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.1285, allocations: 152.6 kB / 369.9 MB, free: 1.895 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.1287, allocations: 138 kB / 370.1 MB, free: 1.758 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.1288, allocations: 70.12 kB / 370.1 MB, free: 1.684 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.129, allocations: 334.8 kB / 370.5 MB, free: 1.348 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003297/0.1293, allocations: 112.8 kB / 370.6 MB, free: 1.238 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003645/0.1297, allocations: 165.5 kB / 370.7 MB, free: 1.059 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006893/0.1304, allocations: 292 kB / 371 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.1304, allocations: 0 / 371 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008518/0.1313, allocations: 376.2 kB / 371.4 MB, free: 396 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1313, allocations: 4 kB / 371.4 MB, free: 392 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.1313, allocations: 4.094 kB / 371.4 MB, free: 388 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.1313, allocations: 4 kB / 371.4 MB, free: 384 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007429/0.1321, allocations: 155.8 kB / 371.6 MB, free: 228 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.1321, allocations: 4 kB / 371.6 MB, free: 224 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002408/0.1323, allocations: 27.98 kB / 371.6 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.1324, allocations: 11.98 kB / 371.6 MB, free: 184 kB / 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.0001815/0.1326, allocations: 153.7 kB / 371.7 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1594/0.292, allocations: 26.59 kB / 371.8 MB, free: 20.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001177/0.2921, allocations: 33.89 kB / 371.8 MB, free: 20.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.2921, allocations: 4.031 kB / 371.8 MB, free: 20.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.856e-06/0.2922, allocations: 0.8125 kB / 371.8 MB, free: 20.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.2922, allocations: 3.828 kB / 371.8 MB, free: 20.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002422/0.2946, allocations: 1.322 MB / 373.1 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-06/0.2946, allocations: 7.219 kB / 373.1 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008735/0.2955, allocations: 168.6 kB / 373.3 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.204e-06/0.2955, allocations: 4.188 kB / 373.3 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.255e-05/0.2956, allocations: 13.69 kB / 373.3 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.155e-06/0.2956, allocations: 4.875 kB / 373.3 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/0.2956, allocations: 1.656 kB / 373.3 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001956/0.2975, allocations: 0.9537 MB / 374.3 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/0.2977, allocations: 134.8 kB / 374.4 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.064e-05/0.2977, allocations: 13.02 kB / 374.4 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004167/0.2982, allocations: 42.97 kB / 374.5 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.923e-05/0.2983, allocations: 49.7 kB / 374.5 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.662e-05/0.2983, allocations: 16.25 kB / 374.5 MB, free: 19.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001351/0.2984, allocations: 148.1 kB / 374.7 MB, free: 19.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2985, allocations: 0 / 374.7 MB, free: 19.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000456/0.2989, allocations: 85.88 kB / 374.8 MB, free: 19.23 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.0001135/0.299, allocations: 112.6 kB / 374.9 MB, free: 19.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001097/0.3001, allocations: 383 kB / 375.3 MB, free: 19.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3002, allocations: 3.969 kB / 375.3 MB, free: 19.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006729/0.3008, allocations: 247.1 kB / 375.5 MB, free: 19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007469/0.3016, allocations: 71.42 kB / 375.6 MB, free: 18.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005361/0.307, allocations: 1.462 MB / 377 MB, free: 18.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002552/0.3073, allocations: 0.7757 MB / 377.8 MB, free: 17.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001672/0.3074, allocations: 36.22 kB / 377.8 MB, free: 17.6 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3074, allocations: 1.219 kB / 377.8 MB, free: 17.6 MB / 302.1 MB Notification: Performance of Templates: time 0.007427/0.3149, allocations: 3.871 MB / 381.7 MB, free: 17.23 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Backlash.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Backlash.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Backlash -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Backlash.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches