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.001564/0.001564, allocations: 182.1 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.975/1.975, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001195/0.001195, allocations: 95.39 kB / 270.9 MB, free: 8.355 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.5272/0.5272, allocations: 43.54 MB / 362.7 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004752/0.0004754, allocations: 11.94 kB / 431.4 MB, free: 5.926 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1264, allocations: 58.85 MB / 490.2 MB, free: 10.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002915/0.1293, allocations: 1.527 MB / 491.7 MB, free: 9.445 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001272/0.1307, allocations: 0.5078 MB / 492.2 MB, free: 8.93 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001866/0.1309, allocations: 0 / 492.2 MB, free: 8.93 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 5.29e-05/0.131, allocations: 19.8 kB / 492.3 MB, free: 8.91 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001824/0.1312, allocations: 43.89 kB / 492.3 MB, free: 8.867 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002376/0.1314, allocations: 23.98 kB / 492.3 MB, free: 8.844 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002547/0.1317, allocations: 99.78 kB / 492.4 MB, free: 8.746 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001915/0.1319, allocations: 57.67 kB / 492.5 MB, free: 8.68 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001608/0.1321, allocations: 47.84 kB / 492.5 MB, free: 8.633 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001333/0.1322, allocations: 51.77 kB / 492.6 MB, free: 8.582 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.643e-05/0.1323, allocations: 8 kB / 492.6 MB, free: 8.574 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.223e-05/0.1323, allocations: 4 kB / 492.6 MB, free: 8.57 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.529e-05/0.1324, allocations: 23.91 kB / 492.6 MB, free: 8.547 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.606e-05/0.1324, allocations: 57.58 kB / 492.7 MB, free: 8.484 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000199/0.1326, allocations: 112 kB / 492.8 MB, free: 8.375 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.1327, allocations: 0 / 492.8 MB, free: 8.375 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1327, allocations: 0 / 492.8 MB, free: 8.375 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.1327, allocations: 0 / 492.8 MB, free: 8.375 MB / 378.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.0007258/0.1334, allocations: 406.9 kB / 493.2 MB, free: 7.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/0.1335, allocations: 20 kB / 493.2 MB, free: 7.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.709e-05/0.1335, allocations: 11.81 kB / 493.2 MB, free: 7.898 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002684/0.1338, allocations: 202.8 kB / 493.4 MB, free: 7.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.1339, allocations: 12 kB / 493.4 MB, free: 7.648 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.63e-05/0.1339, allocations: 12 kB / 493.4 MB, free: 7.637 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000393/0.1343, allocations: 117.6 kB / 493.5 MB, free: 7.516 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.1344, allocations: 0 / 493.5 MB, free: 7.516 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.1344, allocations: 15.94 kB / 493.6 MB, free: 7.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.1344, allocations: 7.938 kB / 493.6 MB, free: 7.492 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000314/0.1347, allocations: 83.95 kB / 493.7 MB, free: 7.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00109/0.1358, allocations: 480.2 kB / 494.1 MB, free: 6.891 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003467/0.1362, allocations: 122.5 kB / 494.2 MB, free: 6.762 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.606e-05/0.1363, allocations: 0 / 494.2 MB, free: 6.762 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/0.1363, allocations: 42.5 kB / 494.3 MB, free: 6.711 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.773e-06/0.1363, allocations: 3.938 kB / 494.3 MB, free: 6.707 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.002214/0.1385, allocations: 0.8176 MB / 495.1 MB, free: 5.797 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.1386, allocations: 55.41 kB / 495.2 MB, free: 5.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001793/0.1388, allocations: 141.7 kB / 495.3 MB, free: 5.586 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.1389, allocations: 29.7 kB / 495.3 MB, free: 5.551 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.139, allocations: 178.7 kB / 495.5 MB, free: 5.375 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.813e-05/0.1391, allocations: 67 kB / 495.6 MB, free: 5.309 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.248e-05/0.1391, allocations: 4 kB / 495.6 MB, free: 5.305 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1392, allocations: 318.8 kB / 495.9 MB, free: 4.984 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001811/0.1395, allocations: 48.36 kB / 495.9 MB, free: 4.938 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002005/0.1397, allocations: 84.02 kB / 496 MB, free: 4.844 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001945/0.1399, allocations: 52 kB / 496.1 MB, free: 4.793 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1399, allocations: 0 / 496.1 MB, free: 4.793 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006602/0.1406, allocations: 218.1 kB / 496.3 MB, free: 4.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.1406, allocations: 7.281 kB / 496.3 MB, free: 4.566 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.1406, allocations: 0 / 496.3 MB, free: 4.566 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000257/0.1409, allocations: 36.84 kB / 496.3 MB, free: 4.527 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003063/0.1412, allocations: 43.91 kB / 496.4 MB, free: 4.484 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002172/0.1434, allocations: 1.565 MB / 497.9 MB, free: 2.789 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001606/0.1436, allocations: 12.09 kB / 497.9 MB, free: 2.777 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.366e-05/0.1437, allocations: 8 kB / 497.9 MB, free: 2.77 MB / 378.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 () * Number of clocked 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.0001723/0.1438, allocations: 125.8 kB / 498.1 MB, free: 2.637 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.373e-05/0.1439, allocations: 15.89 kB / 498.1 MB, free: 2.621 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.068e-05/0.144, allocations: 21.23 kB / 498.1 MB, free: 2.598 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.144, allocations: 3.984 kB / 498.1 MB, free: 2.594 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-06/0.144, allocations: 0 / 498.1 MB, free: 2.594 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.144, allocations: 0 / 498.1 MB, free: 2.594 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001286/0.1453, allocations: 0.5583 MB / 498.7 MB, free: 1.973 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.1454, allocations: 0 / 498.7 MB, free: 1.973 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003306/0.1457, allocations: 43.94 kB / 498.7 MB, free: 1.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001942/0.1459, allocations: 28.84 kB / 498.7 MB, free: 1.898 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.146, allocations: 4 kB / 498.7 MB, free: 1.895 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001693/0.1477, allocations: 1.39 MB / 0.4884 GB, free: 384 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.1477, allocations: 0 / 0.4884 GB, free: 384 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3108/0.4585, allocations: 360.8 kB / 0.4888 GB, free: 42.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.756e-05/0.4587, allocations: 86.98 kB / 0.4888 GB, free: 42.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.984e-05/0.4587, allocations: 2.25 kB / 0.4888 GB, free: 42.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.4589, allocations: 8.125 kB / 0.4888 GB, free: 42.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.752e-05/0.459, allocations: 12.73 kB / 0.4889 GB, free: 42.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.807e-05/0.459, allocations: 7.625 kB / 0.4889 GB, free: 42.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001044/0.4591, allocations: 109.7 kB / 0.489 GB, free: 42.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.4592, allocations: 0.7656 kB / 0.489 GB, free: 42.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004875/0.4597, allocations: 44.28 kB / 0.489 GB, free: 42.68 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 () * Number of clocked 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.0001283/0.4598, allocations: 101.5 kB / 0.4891 GB, free: 42.59 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007022/0.4605, allocations: 260.5 kB / 0.4894 GB, free: 42.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.4605, allocations: 0 / 0.4894 GB, free: 42.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003865/0.4609, allocations: 199.3 kB / 0.4895 GB, free: 42.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003622/0.4613, allocations: 15.47 kB / 0.4896 GB, free: 42.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.4624, allocations: 0.5445 MB / 0.4901 GB, free: 42.09 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002417/0.4627, allocations: 0.7225 MB / 0.4908 GB, free: 41.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.763e-05/0.4628, allocations: 18.88 kB / 0.4908 GB, free: 41.38 MB / 378.7 MB Notification: Performance of SimCode: time 1.363e-06/0.4628, allocations: 0 / 0.4908 GB, free: 41.38 MB / 378.7 MB Notification: Performance of Templates: time 0.006806/0.4696, allocations: 2.315 MB / 0.4931 GB, free: 41.29 MB / 378.7 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