Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001852/0.001853, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002182/0.002182, allocations: 207.9 kB / 19.25 MB, free: 3.898 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.473/1.473, allocations: 227.7 MB / 247.7 MB, free: 10.3 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.001905/0.001905, allocations: 61.41 kB / 307.9 MB, free: 492 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1147, allocations: 50.54 MB / 358.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.005144/0.1199, allocations: 2.947 MB / 361.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002161/0.1221, allocations: 1.049 MB / 362.4 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002558/0.1224, allocations: 11.94 kB / 362.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003646/0.1228, allocations: 79.3 kB / 362.5 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004138/0.1232, allocations: 150.9 kB / 362.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000411/0.1237, allocations: 191.7 kB / 362.8 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006263/0.1243, allocations: 0.6008 MB / 363.5 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002561/0.1246, allocations: 102.7 kB / 363.6 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003202/0.1249, allocations: 267.2 kB / 363.8 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003849/0.1253, allocations: 283 kB / 364.1 MB, free: 8.223 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.151e-05/0.1254, allocations: 48 kB / 364.1 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002234/0.1256, allocations: 104 kB / 364.2 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001819/0.1258, allocations: 127.6 kB / 364.4 MB, free: 7.949 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000255/0.1261, allocations: 234.9 kB / 364.6 MB, free: 7.719 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006941/0.1268, allocations: 0.5766 MB / 365.2 MB, free: 7.141 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1268, allocations: 0 / 365.2 MB, free: 7.141 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1268, allocations: 0 / 365.2 MB, free: 7.141 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.1268, allocations: 0 / 365.2 MB, free: 7.141 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001592/0.1284, allocations: 0.772 MB / 365.9 MB, free: 6.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.1285, allocations: 16.03 kB / 366 MB, free: 6.305 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001266/0.1286, allocations: 44.38 kB / 366 MB, free: 6.262 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004541/0.1291, allocations: 318.5 kB / 366.3 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.705e-05/0.1291, allocations: 29.38 kB / 366.3 MB, free: 5.883 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.276e-05/0.1292, allocations: 36.38 kB / 366.4 MB, free: 5.848 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009087/0.1301, allocations: 438.6 kB / 366.8 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/0.1301, allocations: 7.891 kB / 366.8 MB, free: 5.402 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.184e-05/0.1302, allocations: 19.94 kB / 366.8 MB, free: 5.383 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.877e-05/0.1302, allocations: 8 kB / 366.8 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001038/0.1313, allocations: 439.7 kB / 367.3 MB, free: 4.949 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002576/0.1339, allocations: 1.289 MB / 368.6 MB, free: 3.586 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009851/0.1349, allocations: 405.9 kB / 369 MB, free: 3.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005287/0.1354, allocations: 246.1 kB / 369.2 MB, free: 2.938 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.838e-05/0.1355, allocations: 12.42 kB / 369.2 MB, free: 2.926 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/0.1355, allocations: 35 kB / 369.2 MB, free: 2.883 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.793e-06/0.1355, allocations: 4 kB / 369.2 MB, free: 2.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.005971/0.1415, allocations: 2.244 MB / 371.5 MB, free: 0.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.1416, allocations: 63.78 kB / 371.5 MB, free: 432 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003216/0.1419, allocations: 282.5 kB / 371.8 MB, free: 144 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.669e-05/0.142, allocations: 37.7 kB / 371.9 MB, free: 100 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1589/0.3009, allocations: 168.1 kB / 372 MB, free: 20.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002641/0.3012, allocations: 182 kB / 372.2 MB, free: 20.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002105/0.3014, allocations: 100.2 kB / 372.3 MB, free: 20.22 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.979e-05/0.3015, allocations: 343.3 kB / 372.6 MB, free: 19.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005481/0.302, allocations: 223.6 kB / 372.9 MB, free: 19.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005479/0.3026, allocations: 290.1 kB / 373.1 MB, free: 19.85 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007813/0.3034, allocations: 397 kB / 373.5 MB, free: 19.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3034, allocations: 0.5 kB / 373.5 MB, free: 19.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001627/0.305, allocations: 0.7311 MB / 374.3 MB, free: 19.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.3051, allocations: 5.75 kB / 374.3 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.3051, allocations: 5.062 kB / 374.3 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/0.3062, allocations: 429.1 kB / 374.7 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002778/0.3065, allocations: 63.81 kB / 374.7 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002333/0.3088, allocations: 3.654 MB / 378.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005391/0.3094, allocations: 77.36 kB / 378.5 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.059e-05/0.3094, allocations: 18.69 kB / 378.5 MB, free: 15.9 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: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0002005/0.3097, allocations: 167.1 kB / 378.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.31e-05/0.3098, allocations: 50.14 kB / 378.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001523/0.3113, allocations: 0.7141 MB / 379.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.3113, allocations: 9.5 kB / 379.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.3113, allocations: 0 / 379.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.3113, allocations: 4.422 kB / 379.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002122/0.3135, allocations: 1.287 MB / 380.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3135, allocations: 0 / 380.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002719/0.3137, allocations: 55.7 kB / 380.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009284/0.3147, allocations: 412.1 kB / 381.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.737e-05/0.3147, allocations: 25.73 kB / 381.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002062/0.3168, allocations: 3.613 MB / 384.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3168, allocations: 0.5156 kB / 384.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001842/0.3187, allocations: 1.024 MB / 385.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001845/0.3189, allocations: 168.2 kB / 386 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.198e-05/0.319, allocations: 18.73 kB / 386 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004774/0.3194, allocations: 73.64 kB / 386.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002222/0.3197, allocations: 94.19 kB / 386.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.369e-05/0.3197, allocations: 22.17 kB / 386.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001902/0.3199, allocations: 190.8 kB / 386.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3199, allocations: 0 / 386.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005376/0.3205, allocations: 121.4 kB / 386.5 MB, free: 10.24 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001238/0.3217, allocations: 393.7 kB / 386.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001661/0.3234, allocations: 0.8151 MB / 387.7 MB, free: 9.641 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3234, allocations: 0 / 387.7 MB, free: 9.641 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008119/0.3242, allocations: 0.545 MB / 388.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005626/0.3248, allocations: 67.75 kB / 388.3 MB, free: 9.281 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001958/0.3268, allocations: 1.049 MB / 389.4 MB, free: 8.645 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002792/0.3271, allocations: 0.807 MB / 390.2 MB, free: 7.934 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.3272, allocations: 37.89 kB / 390.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3272, allocations: 4 kB / 390.2 MB, free: 7.926 MB / 302.1 MB Notification: Performance of Templates: time 0.01255/0.3397, allocations: 9.466 MB / 399.7 MB, free: 4.059 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches