Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_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.001811/0.001811, allocations: 172.8 kB / 8 MB, free: 1.074 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.817/1.817, allocations: 205.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009574/0.0009576, allocations: 90.14 kB / 261.8 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2342/0.2342, allocations: 43.5 MB / 353.2 MB, free: 280 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.378e-05/1.379e-05, allocations: 0 / 418.3 MB, free: 28.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1408, allocations: 58.85 MB / 477.1 MB, free: 1.652 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4758/0.6166, allocations: 85.63 MB / 0.5495 GB, free: 9.047 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002184/0.6169, allocations: 70.88 kB / 0.5496 GB, free: 9.047 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005839/0.6228, allocations: 2.473 MB / 0.552 GB, free: 7.086 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.6228, allocations: 0 / 0.552 GB, free: 7.086 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.254e-05/0.6229, allocations: 7.562 kB / 0.552 GB, free: 7.082 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0003812/0.6232, allocations: 400.4 kB / 0.5524 GB, free: 6.652 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.6233, allocations: 8.031 kB / 0.5524 GB, free: 6.645 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.189e-05/0.6233, allocations: 15.81 kB / 0.5524 GB, free: 6.629 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001654/0.6235, allocations: 208.4 kB / 0.5526 GB, free: 6.398 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.368e-06/0.6235, allocations: 4.75 kB / 0.5526 GB, free: 6.395 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.23e-05/0.6236, allocations: 8 kB / 0.5527 GB, free: 6.387 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001489/0.6237, allocations: 60.48 kB / 0.5527 GB, free: 6.348 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001592/0.6239, allocations: 103.8 kB / 0.5528 GB, free: 6.266 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.6239, allocations: 4 kB / 0.5528 GB, free: 6.262 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/0.6239, allocations: 0 / 0.5528 GB, free: 6.262 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.6239, allocations: 4 kB / 0.5528 GB, free: 6.258 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005894/0.6245, allocations: 431.7 kB / 0.5532 GB, free: 5.859 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001643/0.6247, allocations: 107.2 kB / 0.5533 GB, free: 5.773 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.456e-05/0.6248, allocations: 49.61 kB / 0.5534 GB, free: 5.738 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.223e-05/0.6248, allocations: 0 / 0.5534 GB, free: 5.738 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.223e-05/0.6249, allocations: 38.06 kB / 0.5534 GB, free: 5.695 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 8.72e-07/0.6249, allocations: 0 / 0.5534 GB, free: 5.695 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.001063/0.6259, allocations: 0.7022 MB / 0.5541 GB, free: 4.984 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.953e-05/0.626, allocations: 55.41 kB / 0.5542 GB, free: 4.918 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.592e-05/0.6261, allocations: 108.8 kB / 0.5543 GB, free: 4.812 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.339e-05/0.6261, allocations: 25.7 kB / 0.5543 GB, free: 4.781 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.584e-05/0.6261, allocations: 116.5 kB / 0.5544 GB, free: 4.668 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.591e-05/0.6262, allocations: 67.95 kB / 0.5545 GB, free: 4.609 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.053e-06/0.6262, allocations: 0 / 0.5545 GB, free: 4.609 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.022e-05/0.6263, allocations: 322.5 kB / 0.5548 GB, free: 4.289 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.521e-05/0.6263, allocations: 37.42 kB / 0.5548 GB, free: 4.262 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.934e-05/0.6264, allocations: 61.75 kB / 0.5549 GB, free: 4.207 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.944e-05/0.6265, allocations: 41.11 kB / 0.5549 GB, free: 4.184 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.6265, allocations: 7.938 kB / 0.5549 GB, free: 4.176 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000256/0.6268, allocations: 177.5 kB / 0.5551 GB, free: 4.027 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.6268, allocations: 6.969 kB / 0.5551 GB, free: 4.023 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.6268, allocations: 0 / 0.5551 GB, free: 4.023 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001473/0.627, allocations: 39.78 kB / 0.5551 GB, free: 3.992 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001669/0.6271, allocations: 40.78 kB / 0.5552 GB, free: 3.953 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009747/0.6281, allocations: 1.502 MB / 0.5566 GB, free: 2.469 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.696e-05/0.6282, allocations: 4.031 kB / 0.5566 GB, free: 2.465 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.131e-05/0.6282, allocations: 12.06 kB / 0.5566 GB, free: 2.453 MB / 362.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 6.165e-05/0.6283, allocations: 101 kB / 0.5567 GB, free: 2.348 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.919e-05/0.6283, allocations: 7.906 kB / 0.5567 GB, free: 2.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.26e-05/0.6284, allocations: 16.25 kB / 0.5568 GB, free: 2.332 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.6284, allocations: 0 / 0.5568 GB, free: 2.332 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.431e-06/0.6284, allocations: 11.94 kB / 0.5568 GB, free: 2.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.6284, allocations: 0 / 0.5568 GB, free: 2.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004956/0.6289, allocations: 0.4883 MB / 0.5573 GB, free: 1.863 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.6289, allocations: 3.984 kB / 0.5573 GB, free: 1.859 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001523/0.6291, allocations: 43.86 kB / 0.5573 GB, free: 1.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.092e-05/0.6291, allocations: 28.66 kB / 0.5573 GB, free: 1.793 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.6292, allocations: 8.031 kB / 0.5573 GB, free: 1.785 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006435/0.6298, allocations: 1.303 MB / 0.5586 GB, free: 448 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.6298, allocations: 8.094 kB / 0.5586 GB, free: 440 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000292/0.6301, allocations: 324.5 kB / 0.5589 GB, free: 144 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.526e-05/0.6302, allocations: 88.95 kB / 0.559 GB, free: 36 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.558e-05/0.6302, allocations: 0 / 0.559 GB, free: 36 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.203e-05/0.6303, allocations: 4 kB / 0.559 GB, free: 32 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.786e-05/0.6303, allocations: 24 kB / 0.559 GB, free: 12 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.6303, allocations: 7.984 kB / 0.559 GB, free: 4 kB / 362.7 MB Notification: Performance of sorting global known variables: time 8.342e-05/0.6304, allocations: 95.83 kB / 0.5591 GB, free: 15.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6304, allocations: 0 / 0.5591 GB, free: 15.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003117/0.6308, allocations: 39.94 kB / 0.5592 GB, free: 15.87 MB / 378.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.0001648/0.6309, allocations: 99.06 kB / 0.5593 GB, free: 15.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004105/0.6313, allocations: 228 kB / 0.5595 GB, free: 15.58 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.6314, allocations: 4 kB / 0.5595 GB, free: 15.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002151/0.6316, allocations: 172.8 kB / 0.5597 GB, free: 15.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.6319, allocations: 11.73 kB / 0.5597 GB, free: 15.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006248/0.6325, allocations: 314.2 kB / 0.56 GB, free: 15.09 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.6328, allocations: 0.7282 MB / 0.5607 GB, free: 14.34 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.182e-05/0.6329, allocations: 5.219 kB / 0.5607 GB, free: 14.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.758e-05/0.6329, allocations: 19.42 kB / 0.5607 GB, free: 14.32 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.6329, allocations: 7.875 kB / 0.5607 GB, free: 14.31 MB / 378.7 MB Notification: Performance of Templates: time 0.004/0.6369, allocations: 1.337 MB / 0.562 GB, free: 12.99 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/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_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches