Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 114.4 kB / 17.33 MB, free: 5.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 191.6 kB / 18.25 MB, free: 4.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 222.9 MB / 241.9 MB, free: 13.68 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2228/0.2228, allocations: 44.18 MB / 336.2 MB, free: 2.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001557, allocations: 68.45 kB / 407.9 MB, free: 27.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1341, allocations: 60.83 MB / 468.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003817/0.1379, allocations: 1.96 MB / 470.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009249/0.1389, allocations: 494.8 kB / 471.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.139, allocations: 4 kB / 471.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.1392, allocations: 15.84 kB / 471.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001257/0.1394, allocations: 43.7 kB / 471.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001942/0.1396, allocations: 31.95 kB / 471.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002024/0.1398, allocations: 139.3 kB / 471.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001758/0.14, allocations: 65.62 kB / 471.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001359/0.1401, allocations: 59.73 kB / 471.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001087/0.1402, allocations: 63.77 kB / 471.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.326e-05/0.1403, allocations: 12 kB / 471.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.937e-05/0.1403, allocations: 12 kB / 471.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.82e-05/0.1403, allocations: 23.86 kB / 471.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.635e-05/0.1404, allocations: 71.66 kB / 471.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001917/0.1406, allocations: 151.7 kB / 471.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1406, allocations: 4 kB / 471.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1406, allocations: 0 / 471.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.874e-06/0.1407, allocations: 0 / 471.8 MB, free: 11.55 MB / 350.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.0005929/0.1412, allocations: 435 kB / 472.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.1413, allocations: 12.03 kB / 472.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.739e-05/0.1414, allocations: 16.75 kB / 472.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001955/0.1416, allocations: 192.2 kB / 472.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.1416, allocations: 12.38 kB / 472.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.902e-05/0.1416, allocations: 16.31 kB / 472.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00028/0.1419, allocations: 134.2 kB / 472.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.1419, allocations: 7.906 kB / 472.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.142, allocations: 8 kB / 472.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.142, allocations: 4 kB / 472.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001797/0.1422, allocations: 79.95 kB / 472.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007008/0.1429, allocations: 472.2 kB / 473.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002229/0.1431, allocations: 126.4 kB / 473.3 MB, free: 9.918 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.1432, allocations: 56.83 kB / 473.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.1433, allocations: 4 kB / 473.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.1433, allocations: 30.56 kB / 473.4 MB, free: 9.816 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.212e-06/0.1433, allocations: 0 / 473.4 MB, free: 9.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001465/0.1448, allocations: 0.809 MB / 474.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.32e-05/0.1448, allocations: 55.41 kB / 474.3 MB, free: 8.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.1449, allocations: 140.6 kB / 474.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.145, allocations: 29.7 kB / 474.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.005e-05/0.145, allocations: 112.3 kB / 474.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.817e-05/0.1451, allocations: 71 kB / 474.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.839e-05/0.1452, allocations: 37.7 kB / 474.7 MB, free: 8.441 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.1453, allocations: 322.8 kB / 475 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.1454, allocations: 35.98 kB / 475 MB, free: 8.082 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001112/0.1455, allocations: 92.78 kB / 475.1 MB, free: 7.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002176/0.1457, allocations: 131.3 kB / 475.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.1457, allocations: 0 / 475.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003593/0.1461, allocations: 206.3 kB / 475.4 MB, free: 7.629 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/0.1461, allocations: 7.938 kB / 475.4 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.1462, allocations: 7.984 kB / 475.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001632/0.1463, allocations: 40.83 kB / 475.5 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.1465, allocations: 39.91 kB / 475.5 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001465/0.148, allocations: 1.732 MB / 477.3 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.079e-05/0.1481, allocations: 12.06 kB / 477.3 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/0.1481, allocations: 8 kB / 477.3 MB, free: 5.645 MB / 350.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 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.1482, allocations: 125.8 kB / 477.4 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.588e-05/0.1483, allocations: 15.81 kB / 477.4 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.736e-05/0.1483, allocations: 25.17 kB / 477.4 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.1483, allocations: 3.938 kB / 477.4 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.299e-06/0.1483, allocations: 0 / 477.4 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.1483, allocations: 4 kB / 477.4 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007494/0.1491, allocations: 0.5466 MB / 478 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1491, allocations: 0 / 478 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.1493, allocations: 31.98 kB / 478 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001173/0.1494, allocations: 40.86 kB / 478.1 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.1494, allocations: 4 kB / 478.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001139/0.1506, allocations: 1.481 MB / 479.5 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.1506, allocations: 0 / 479.5 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005081/0.1511, allocations: 348.9 kB / 479.9 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.549e-05/0.1512, allocations: 85.02 kB / 480 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.125e-05/0.1512, allocations: 4 kB / 480 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.679e-05/0.1513, allocations: 8 kB / 480 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.755e-05/0.1514, allocations: 19.91 kB / 480 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.002e-05/0.1514, allocations: 7.938 kB / 480 MB, free: 2.652 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.998e-05/0.1515, allocations: 105.5 kB / 480.1 MB, free: 2.551 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1515, allocations: 0 / 480.1 MB, free: 2.551 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000343/0.1518, allocations: 48.06 kB / 480.2 MB, free: 2.504 MB / 350.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 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000128/0.152, allocations: 95.19 kB / 480.2 MB, free: 2.398 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005096/0.1525, allocations: 274.4 kB / 480.5 MB, free: 2.117 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1525, allocations: 0 / 480.5 MB, free: 2.117 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002593/0.1528, allocations: 201.5 kB / 480.7 MB, free: 1.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003785/0.1532, allocations: 20.12 kB / 480.7 MB, free: 1.891 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000846/0.154, allocations: 0.4894 MB / 481.2 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002634/0.1543, allocations: 0.7205 MB / 481.9 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.505e-05/0.1543, allocations: 9.422 kB / 482 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.209e-05/0.1544, allocations: 15.44 kB / 482 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1544, allocations: 0 / 482 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of Templates: time 0.004536/0.1589, allocations: 1.577 MB / 483.5 MB, free: 15.02 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches