Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008757/0.0008756, allocations: 176.3 kB / 17.4 MB, free: 4.391 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.546/1.546, allocations: 223.3 MB / 241.4 MB, free: 9.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000759/0.0007588, allocations: 89.91 kB / 292.6 MB, free: 10.56 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003853/0.0003853, allocations: 11.94 kB / 352.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2491, allocations: 50.41 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1043/0.3535, allocations: 81.94 MB / 484.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002132/0.3538, allocations: 67.97 kB / 484.7 MB, free: 14.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02754/0.3813, allocations: 10.27 MB / 495 MB, free: 4.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.851e-06/0.3814, allocations: 0 / 495 MB, free: 4.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.197e-05/0.3814, allocations: 15.94 kB / 495 MB, free: 4.004 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001525/0.383, allocations: 0.6082 MB / 495.6 MB, free: 3.344 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/0.383, allocations: 8.031 kB / 495.6 MB, free: 3.336 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004206/0.3835, allocations: 64.38 kB / 495.7 MB, free: 3.273 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006184/0.3841, allocations: 299.5 kB / 496 MB, free: 2.941 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001463/0.3843, allocations: 92.61 kB / 496.1 MB, free: 2.836 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.273e-05/0.3844, allocations: 32.38 kB / 496.1 MB, free: 2.805 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008795/0.3853, allocations: 405.5 kB / 496.5 MB, free: 2.398 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.482e-05/0.3853, allocations: 11.94 kB / 496.5 MB, free: 2.387 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.821e-05/0.3854, allocations: 8 kB / 496.5 MB, free: 2.379 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.3854, allocations: 8 kB / 496.5 MB, free: 2.371 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009736/0.3863, allocations: 482.2 kB / 497 MB, free: 1.898 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001474/0.3878, allocations: 0.8994 MB / 497.9 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007737/0.3886, allocations: 387.1 kB / 498.3 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004509/0.3891, allocations: 234.1 kB / 498.5 MB, free: 332 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.677e-05/0.3891, allocations: 12.42 kB / 498.5 MB, free: 320 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.815e-05/0.3892, allocations: 35 kB / 498.6 MB, free: 276 kB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 1.944e-06/0.3892, allocations: 0 / 498.6 MB, free: 276 kB / 362.7 MB Notification: Performance of matching and sorting (n=55): time 0.004953/0.3942, allocations: 2.164 MB / 0.489 GB, free: 14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.51e-05/0.3942, allocations: 89.67 kB / 0.4891 GB, free: 13.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003061/0.3945, allocations: 239 kB / 0.4893 GB, free: 13.65 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.978e-05/0.3946, allocations: 41.7 kB / 0.4894 GB, free: 13.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.696e-05/0.3947, allocations: 129.2 kB / 0.4895 GB, free: 13.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001586/0.3949, allocations: 185.4 kB / 0.4897 GB, free: 13.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.712e-05/0.3949, allocations: 8 kB / 0.4897 GB, free: 13.28 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.395, allocations: 342.8 kB / 0.49 GB, free: 12.94 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004392/0.3955, allocations: 197 kB / 0.4902 GB, free: 12.74 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004498/0.396, allocations: 244.6 kB / 0.4904 GB, free: 12.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007791/0.3967, allocations: 388.3 kB / 0.4908 GB, free: 12.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3968, allocations: 0 / 0.4908 GB, free: 12.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001216/0.398, allocations: 0.6134 MB / 0.4914 GB, free: 11.49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.398, allocations: 4 kB / 0.4914 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.398, allocations: 0 / 0.4914 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006986/0.3987, allocations: 254.7 kB / 0.4916 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003013/0.399, allocations: 75.94 kB / 0.4917 GB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003588/0.4026, allocations: 2.69 MB / 0.4943 GB, free: 8.336 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003096/0.403, allocations: 36 kB / 0.4944 GB, free: 8.301 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.7e-05/0.403, allocations: 20 kB / 0.4944 GB, free: 8.281 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002191/0.4033, allocations: 161.8 kB / 0.4945 GB, free: 8.113 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.908e-05/0.4033, allocations: 31.62 kB / 0.4946 GB, free: 8.082 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001006/0.4034, allocations: 51.3 kB / 0.4946 GB, free: 8.027 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.4035, allocations: 4 kB / 0.4946 GB, free: 8.023 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.4035, allocations: 3.938 kB / 0.4946 GB, free: 8.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.4035, allocations: 7.984 kB / 0.4946 GB, free: 8.012 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002125/0.4056, allocations: 1.26 MB / 0.4959 GB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.4056, allocations: 0 / 0.4959 GB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003052/0.4059, allocations: 71.88 kB / 0.4959 GB, free: 6.621 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005862/0.4065, allocations: 220.8 kB / 0.4961 GB, free: 6.402 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.19e-05/0.4066, allocations: 15.98 kB / 0.4962 GB, free: 6.387 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003299/0.4099, allocations: 2.61 MB / 0.4987 GB, free: 3.652 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.4099, allocations: 0 / 0.4987 GB, free: 3.652 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001682/0.4116, allocations: 0.9415 MB / 0.4996 GB, free: 2.688 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001851/0.4118, allocations: 160.6 kB / 0.4998 GB, free: 2.512 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.958e-05/0.4119, allocations: 12 kB / 0.4998 GB, free: 2.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002957/0.4122, allocations: 40.03 kB / 0.4998 GB, free: 2.461 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.4124, allocations: 76.3 kB / 0.4999 GB, free: 2.387 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.502e-05/0.4124, allocations: 19.98 kB / 0.4999 GB, free: 2.367 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002073/0.4126, allocations: 168.6 kB / 0.5001 GB, free: 2.203 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4126, allocations: 0 / 0.5001 GB, free: 2.203 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007017/0.4133, allocations: 156 kB / 0.5002 GB, free: 2.051 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002965/0.4136, allocations: 155.1 kB / 0.5004 GB, free: 1.891 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001477/0.4151, allocations: 0.6916 MB / 0.501 GB, free: 1.184 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4152, allocations: 0 / 0.501 GB, free: 1.184 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008058/0.416, allocations: 475.7 kB / 0.5015 GB, free: 0.707 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000437/0.4164, allocations: 47.28 kB / 0.5015 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1966/0.613, allocations: 0.9327 MB / 0.5025 GB, free: 101.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003627/0.6134, allocations: 0.7933 MB / 0.5032 GB, free: 100.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003699/0.6138, allocations: 61.75 kB / 0.5033 GB, free: 100.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001523/0.614, allocations: 38.02 kB / 0.5033 GB, free: 100.4 MB / 378.7 MB Notification: Performance of SimCode: time 1.924e-06/0.614, allocations: 0 / 0.5033 GB, free: 100.4 MB / 378.7 MB Notification: Performance of Templates: time 0.01293/0.6269, allocations: 6.842 MB / 0.51 GB, free: 100 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches