Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002434/0.002434, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.064/2.064, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001581/0.00158, allocations: 88.55 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2952/0.2952, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.697e-05/1.705e-05, allocations: 4.219 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4138/0.4139, allocations: 58.85 MB / 477.1 MB, free: 5.254 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1637/0.5776, allocations: 85.64 MB / 0.5495 GB, free: 13.67 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.578, allocations: 71.95 kB / 0.5496 GB, free: 13.6 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01095/0.5889, allocations: 2.47 MB / 0.552 GB, free: 11.12 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.589, allocations: 4 kB / 0.552 GB, free: 11.12 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.704e-05/0.589, allocations: 4 kB / 0.552 GB, free: 11.12 MB / 395.1 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.0006333/0.5897, allocations: 398.2 kB / 0.5524 GB, free: 10.68 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.5897, allocations: 8.031 kB / 0.5524 GB, free: 10.68 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.966e-05/0.5898, allocations: 15.81 kB / 0.5524 GB, free: 10.66 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.5901, allocations: 200 kB / 0.5526 GB, free: 10.43 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.5901, allocations: 4 kB / 0.5526 GB, free: 10.42 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.779e-05/0.5902, allocations: 15.98 kB / 0.5526 GB, free: 10.41 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002391/0.5905, allocations: 60 kB / 0.5527 GB, free: 10.35 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002699/0.5907, allocations: 105.6 kB / 0.5528 GB, free: 10.24 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.5908, allocations: 0 / 0.5528 GB, free: 10.24 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.5908, allocations: 0 / 0.5528 GB, free: 10.24 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.5908, allocations: 4 kB / 0.5528 GB, free: 10.23 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009109/0.5917, allocations: 432.8 kB / 0.5532 GB, free: 9.773 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002595/0.592, allocations: 102.5 kB / 0.5533 GB, free: 9.664 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.5922, allocations: 52.84 kB / 0.5534 GB, free: 9.609 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.32e-05/0.5922, allocations: 0 / 0.5534 GB, free: 9.609 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.28e-05/0.5923, allocations: 38.5 kB / 0.5534 GB, free: 9.562 MB / 395.1 MB Notification: Performance of pre-optimization done (n=13): time 1.663e-06/0.5923, allocations: 4 kB / 0.5534 GB, free: 9.559 MB / 395.1 MB Notification: Performance of matching and sorting (n=19): time 0.001767/0.5941, allocations: 0.7013 MB / 0.5541 GB, free: 8.766 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.5941, allocations: 51.41 kB / 0.5541 GB, free: 8.703 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.5943, allocations: 113.4 kB / 0.5542 GB, free: 8.586 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.5943, allocations: 25.7 kB / 0.5543 GB, free: 8.555 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.5944, allocations: 182.8 kB / 0.5544 GB, free: 8.371 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.16e-05/0.5945, allocations: 69.95 kB / 0.5545 GB, free: 8.305 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.648e-06/0.5945, allocations: 0 / 0.5545 GB, free: 8.305 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.5947, allocations: 318.8 kB / 0.5548 GB, free: 7.984 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/0.5948, allocations: 32.38 kB / 0.5548 GB, free: 7.949 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.595, allocations: 67.94 kB / 0.5549 GB, free: 7.871 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001369/0.5951, allocations: 47.98 kB / 0.5549 GB, free: 7.824 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.5951, allocations: 0 / 0.5549 GB, free: 7.824 MB / 395.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005262/0.5957, allocations: 174.8 kB / 0.5551 GB, free: 7.645 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.5957, allocations: 7.938 kB / 0.5551 GB, free: 7.637 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.5957, allocations: 0 / 0.5551 GB, free: 7.637 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000233/0.596, allocations: 40.84 kB / 0.5552 GB, free: 7.594 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003229/0.5963, allocations: 40 kB / 0.5552 GB, free: 7.555 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001946/0.5983, allocations: 1.502 MB / 0.5567 GB, free: 5.941 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.5985, allocations: 0 / 0.5567 GB, free: 5.941 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.47e-05/0.5985, allocations: 8 kB / 0.5567 GB, free: 5.934 MB / 395.1 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.0001169/0.5986, allocations: 104.9 kB / 0.5568 GB, free: 5.824 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.779e-05/0.5987, allocations: 11.81 kB / 0.5568 GB, free: 5.812 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.487e-05/0.5988, allocations: 20.73 kB / 0.5568 GB, free: 5.793 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.5988, allocations: 0 / 0.5568 GB, free: 5.793 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/0.5988, allocations: 12.02 kB / 0.5568 GB, free: 5.781 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.5988, allocations: 0 / 0.5568 GB, free: 5.781 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/0.5999, allocations: 499.4 kB / 0.5573 GB, free: 5.246 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.6, allocations: 3.938 kB / 0.5573 GB, free: 5.242 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003695/0.6003, allocations: 40.02 kB / 0.5573 GB, free: 5.203 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001771/0.6005, allocations: 24.84 kB / 0.5574 GB, free: 5.176 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.052e-05/0.6006, allocations: 4 kB / 0.5574 GB, free: 5.172 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001508/0.6021, allocations: 1.311 MB / 0.5586 GB, free: 3.742 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.6022, allocations: 0 / 0.5586 GB, free: 3.742 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006804/0.6028, allocations: 323.1 kB / 0.559 GB, free: 3.398 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.855e-05/0.6029, allocations: 89.03 kB / 0.559 GB, free: 3.293 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.376e-05/0.603, allocations: 4.125 kB / 0.559 GB, free: 3.289 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001539/0.6031, allocations: 8 kB / 0.559 GB, free: 3.281 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.686e-05/0.6032, allocations: 19.92 kB / 0.5591 GB, free: 3.262 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.997e-05/0.6032, allocations: 4 kB / 0.5591 GB, free: 3.258 MB / 395.1 MB Notification: Performance of sorting global known variables: time 7.74e-05/0.6033, allocations: 91.28 kB / 0.5592 GB, free: 3.168 MB / 395.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6033, allocations: 3.938 kB / 0.5592 GB, free: 3.164 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0004946/0.6038, allocations: 39.94 kB / 0.5592 GB, free: 3.125 MB / 395.1 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.0001679/0.604, allocations: 103.2 kB / 0.5593 GB, free: 3.016 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0006353/0.6047, allocations: 225.5 kB / 0.5595 GB, free: 2.785 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 6.553e-06/0.6047, allocations: 0 / 0.5595 GB, free: 2.785 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003436/0.605, allocations: 173.7 kB / 0.5597 GB, free: 2.605 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003535/0.6054, allocations: 11.98 kB / 0.5597 GB, free: 2.594 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009762/0.6064, allocations: 356.7 kB / 0.56 GB, free: 2.211 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004148/0.6069, allocations: 0.7283 MB / 0.5607 GB, free: 1.457 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.388e-05/0.6069, allocations: 11.44 kB / 0.5608 GB, free: 1.445 MB / 395.1 MB Notification: Performance of SimCode: time 9.72e-07/0.6069, allocations: 4 kB / 0.5608 GB, free: 1.441 MB / 395.1 MB Notification: Performance of Templates: time 0.005993/0.6129, allocations: 2.259 MB / 0.563 GB, free: 15.18 MB / 411.1 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches