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.001045/0.001045, allocations: 94.53 kB / 17.35 MB, free: 6.371 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.001384/0.001384, allocations: 172.7 kB / 18.25 MB, free: 5.527 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.411/1.411, allocations: 223.3 MB / 242.3 MB, free: 14.46 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.2014/0.2014, allocations: 44.24 MB / 337.7 MB, free: 2.422 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003394/0.0003395, allocations: 12 kB / 410.3 MB, free: 27.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1428, allocations: 61.92 MB / 472.2 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002396/0.1453, allocations: 1.609 MB / 473.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000986/0.1463, allocations: 490.9 kB / 474.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001638/0.1465, allocations: 11.88 kB / 474.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001285/0.1466, allocations: 7.922 kB / 474.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001368/0.1468, allocations: 35.69 kB / 474.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002346/0.147, allocations: 31.97 kB / 474.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002506/0.1473, allocations: 139.3 kB / 474.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001929/0.1475, allocations: 57.95 kB / 474.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001606/0.1477, allocations: 59.72 kB / 474.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001316/0.1478, allocations: 47.78 kB / 474.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.788e-05/0.1478, allocations: 4 kB / 474.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.513e-05/0.1479, allocations: 8 kB / 474.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.45e-05/0.1479, allocations: 23.86 kB / 474.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.148, allocations: 93.34 kB / 474.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000186/0.1482, allocations: 139.7 kB / 475 MB, free: 10.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.1482, allocations: 3.938 kB / 475 MB, free: 10.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.79e-06/0.1482, allocations: 0 / 475 MB, free: 10.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.1483, allocations: 3.938 kB / 475 MB, free: 10.53 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.0006447/0.1489, allocations: 415.1 kB / 475.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.149, allocations: 8.031 kB / 475.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.425e-05/0.149, allocations: 16.75 kB / 475.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000247/0.1493, allocations: 200.1 kB / 475.6 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.1493, allocations: 12.38 kB / 475.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.948e-05/0.1494, allocations: 12.38 kB / 475.6 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003183/0.1497, allocations: 134.3 kB / 475.8 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.1497, allocations: 0 / 475.8 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.982e-05/0.1497, allocations: 8 kB / 475.8 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.892e-06/0.1497, allocations: 0 / 475.8 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002031/0.1499, allocations: 83.95 kB / 475.9 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007605/0.1507, allocations: 480.1 kB / 476.3 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002162/0.1509, allocations: 126.5 kB / 476.5 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.1511, allocations: 60.78 kB / 476.5 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.195e-05/0.1511, allocations: 0 / 476.5 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.1511, allocations: 46.48 kB / 476.6 MB, free: 8.801 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.573e-06/0.1511, allocations: 0 / 476.6 MB, free: 8.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001507/0.1526, allocations: 0.8213 MB / 477.4 MB, free: 7.891 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.952e-05/0.1527, allocations: 51.41 kB / 477.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.1528, allocations: 144.6 kB / 477.6 MB, free: 7.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.1529, allocations: 25.7 kB / 477.6 MB, free: 7.648 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.214e-05/0.1529, allocations: 112.3 kB / 477.7 MB, free: 7.535 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.774e-05/0.153, allocations: 70.98 kB / 477.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.972e-05/0.153, allocations: 21.72 kB / 477.8 MB, free: 7.438 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.1532, allocations: 322.8 kB / 478.1 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.1533, allocations: 51.97 kB / 478.2 MB, free: 7.062 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.1534, allocations: 79.28 kB / 478.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000244/0.1537, allocations: 147.2 kB / 478.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.1537, allocations: 0 / 478.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004265/0.1541, allocations: 210.2 kB / 478.6 MB, free: 6.602 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.1541, allocations: 4 kB / 478.6 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.1541, allocations: 3.938 kB / 478.6 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001858/0.1543, allocations: 48.86 kB / 478.6 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.1545, allocations: 31.98 kB / 478.7 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001476/0.156, allocations: 1.553 MB / 480.2 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.094e-05/0.1561, allocations: 8.031 kB / 480.2 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.1561, allocations: 8 kB / 480.2 MB, free: 4.812 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.0001206/0.1562, allocations: 133.7 kB / 480.4 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.635e-05/0.1563, allocations: 11.91 kB / 480.4 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.204e-05/0.1563, allocations: 17.25 kB / 480.4 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.1563, allocations: 4 kB / 480.4 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1563, allocations: 3.938 kB / 480.4 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.1564, allocations: 0 / 480.4 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007887/0.1571, allocations: 0.5661 MB / 481 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1572, allocations: 0 / 481 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.1573, allocations: 35.97 kB / 481 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001048/0.1574, allocations: 32.78 kB / 481 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/0.1575, allocations: 8 kB / 481.1 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001112/0.1586, allocations: 1.374 MB / 482.4 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.1586, allocations: 3.938 kB / 482.4 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004887/0.1591, allocations: 352.9 kB / 482.8 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.36e-05/0.1592, allocations: 85.05 kB / 482.9 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.974e-05/0.1592, allocations: 8 kB / 482.9 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.825e-05/0.1593, allocations: 0 / 482.9 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.245e-05/0.1593, allocations: 31.91 kB / 482.9 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-06/0.1594, allocations: 4 kB / 482.9 MB, free: 1.906 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.213e-05/0.1594, allocations: 106 kB / 483 MB, free: 1.805 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1594, allocations: 0 / 483 MB, free: 1.805 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003227/0.1598, allocations: 44 kB / 483 MB, free: 1.762 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.0001106/0.1599, allocations: 95.19 kB / 483.1 MB, free: 1.656 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004918/0.1604, allocations: 262.5 kB / 483.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1604, allocations: 0 / 483.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000269/0.1607, allocations: 204.9 kB / 483.6 MB, free: 1.176 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000353/0.161, allocations: 24.05 kB / 483.6 MB, free: 1.152 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008122/0.1619, allocations: 0.5372 MB / 484.2 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.1622, allocations: 0.7168 MB / 484.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.199e-05/0.1623, allocations: 13.42 kB / 484.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.588e-05/0.1623, allocations: 15.44 kB / 484.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1623, allocations: 0 / 484.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of Templates: time 0.004472/0.1668, allocations: 1.491 MB / 486.4 MB, free: 14.32 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