Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001121/0.001121, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 225.4 MB / 240.1 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009212/0.0009211, allocations: 93.83 kB / 292.1 MB, free: 6 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2036/0.2036, allocations: 45.15 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.661e-05/3.681e-05, allocations: 4 kB / 460.4 MB, free: 70.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.111, allocations: 63.24 MB / 0.5114 GB, free: 6.82 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4294/0.5405, allocations: 88.47 MB / 0.5977 GB, free: 5.488 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002052/0.5407, allocations: 71.34 kB / 0.5978 GB, free: 5.453 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007331/0.5481, allocations: 2.68 MB / 0.6004 GB, free: 3.18 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.5481, allocations: 4 kB / 0.6004 GB, free: 3.176 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.384e-05/0.5481, allocations: 4 kB / 0.6004 GB, free: 3.172 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005264/0.5487, allocations: 396.2 kB / 0.6008 GB, free: 2.75 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/0.5487, allocations: 11.97 kB / 0.6008 GB, free: 2.738 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001739/0.5489, allocations: 27.8 kB / 0.6009 GB, free: 2.711 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002226/0.5492, allocations: 212.7 kB / 0.6011 GB, free: 2.473 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.5492, allocations: 11.81 kB / 0.6011 GB, free: 2.465 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.113e-05/0.5492, allocations: 11.06 kB / 0.6011 GB, free: 2.457 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002339/0.5495, allocations: 126.1 kB / 0.6012 GB, free: 2.359 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.5495, allocations: 0 / 0.6012 GB, free: 2.359 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.5495, allocations: 6 kB / 0.6012 GB, free: 2.359 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.146e-06/0.5495, allocations: 7.984 kB / 0.6012 GB, free: 2.352 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001328/0.5497, allocations: 70.55 kB / 0.6013 GB, free: 2.305 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006655/0.5503, allocations: 465 kB / 0.6017 GB, free: 1.867 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001725/0.5505, allocations: 112.8 kB / 0.6018 GB, free: 1.777 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.742e-05/0.5506, allocations: 51.23 kB / 0.6019 GB, free: 1.742 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.5506, allocations: 4 kB / 0.6019 GB, free: 1.738 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.5507, allocations: 42.3 kB / 0.6019 GB, free: 1.691 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 1.222e-06/0.5507, allocations: 0 / 0.6019 GB, free: 1.691 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.001207/0.5519, allocations: 0.7407 MB / 0.6027 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.597e-05/0.5519, allocations: 55.41 kB / 0.6027 GB, free: 0.8945 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.5521, allocations: 133.5 kB / 0.6028 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.5521, allocations: 29.7 kB / 0.6029 GB, free: 0.7344 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.919e-05/0.5521, allocations: 110.8 kB / 0.603 GB, free: 0.6289 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.431e-05/0.5522, allocations: 69.58 kB / 0.603 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.211e-06/0.5522, allocations: 3.312 kB / 0.603 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.5523, allocations: 322.3 kB / 0.6033 GB, free: 256 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.629e-05/0.5524, allocations: 46.11 kB / 0.6034 GB, free: 220 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.914e-05/0.5525, allocations: 69.19 kB / 0.6035 GB, free: 156 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.07e-05/0.5526, allocations: 54.06 kB / 0.6035 GB, free: 120 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.5526, allocations: 0 / 0.6035 GB, free: 120 kB / 394.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003088/0.5529, allocations: 199.7 kB / 0.6037 GB, free: 15.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.5529, allocations: 4 kB / 0.6037 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.5529, allocations: 4 kB / 0.6037 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001556/0.5531, allocations: 44.56 kB / 0.6037 GB, free: 15.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001738/0.5533, allocations: 39.92 kB / 0.6038 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001456/0.5548, allocations: 1.549 MB / 0.6053 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.332e-05/0.5549, allocations: 7.344 kB / 0.6053 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.5549, allocations: 7.562 kB / 0.6053 GB, free: 14.31 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001111/0.555, allocations: 112.5 kB / 0.6054 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.902e-05/0.5551, allocations: 20.02 kB / 0.6054 GB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.841e-05/0.5552, allocations: 23.55 kB / 0.6055 GB, free: 14.17 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.5552, allocations: 4 kB / 0.6055 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.5552, allocations: 4 kB / 0.6055 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.5552, allocations: 0 / 0.6055 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/0.5564, allocations: 0.5464 MB / 0.606 GB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.5564, allocations: 0 / 0.606 GB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002587/0.5567, allocations: 31.98 kB / 0.606 GB, free: 13.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001647/0.5569, allocations: 32.16 kB / 0.6061 GB, free: 13.58 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.993e-05/0.5569, allocations: 11.92 kB / 0.6061 GB, free: 13.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00139/0.5583, allocations: 1.367 MB / 0.6074 GB, free: 12.15 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.5583, allocations: 0 / 0.6074 GB, free: 12.15 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004605/0.5588, allocations: 350.3 kB / 0.6077 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.828e-05/0.5589, allocations: 85.05 kB / 0.6078 GB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.597e-05/0.5589, allocations: 0 / 0.6078 GB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.862e-05/0.559, allocations: 11.67 kB / 0.6078 GB, free: 11.74 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.013e-05/0.5591, allocations: 15.42 kB / 0.6078 GB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.5591, allocations: 4 kB / 0.6079 GB, free: 11.72 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.218e-05/0.5592, allocations: 109.3 kB / 0.608 GB, free: 11.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5592, allocations: 0 / 0.608 GB, free: 11.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003339/0.5595, allocations: 46.75 kB / 0.608 GB, free: 11.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001463/0.5597, allocations: 100.5 kB / 0.6081 GB, free: 11.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003942/0.5601, allocations: 246.5 kB / 0.6083 GB, free: 11.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.5601, allocations: 0 / 0.6083 GB, free: 11.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002172/0.5603, allocations: 192.7 kB / 0.6085 GB, free: 11.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002319/0.5606, allocations: 27.3 kB / 0.6085 GB, free: 11.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005762/0.5612, allocations: 329.6 kB / 0.6089 GB, free: 10.75 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002863/0.5615, allocations: 0.7246 MB / 0.6096 GB, free: 10 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.984e-05/0.5615, allocations: 9.219 kB / 0.6096 GB, free: 9.992 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.133e-05/0.5616, allocations: 15.42 kB / 0.6096 GB, free: 9.977 MB / 410.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5616, allocations: 0 / 0.6096 GB, free: 9.977 MB / 410.7 MB Notification: Performance of Templates: time 0.003949/0.5655, allocations: 1.47 MB / 0.611 GB, free: 8.523 MB / 410.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches