Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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) 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(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 111.3 kB / 16.92 MB, free: 5.762 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.001271/0.001271, allocations: 191.3 kB / 17.85 MB, free: 5.172 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.385/1.385, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 43.25 kB / 300.6 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.13, allocations: 49.46 MB / 350.1 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.004124/0.1342, allocations: 1.837 MB / 351.9 MB, free: 2.574 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009973/0.1352, allocations: 462.8 kB / 352.3 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001739/0.1354, allocations: 0 / 352.3 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001261/0.1355, allocations: 19.86 kB / 352.4 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.312e-05/0.1356, allocations: 15.8 kB / 352.4 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001921/0.1358, allocations: 31.95 kB / 352.4 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001953/0.1361, allocations: 107.6 kB / 352.5 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001694/0.1362, allocations: 37.38 kB / 352.5 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001142/0.1364, allocations: 43.8 kB / 352.6 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001065/0.1365, allocations: 43.78 kB / 352.6 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.811e-05/0.1365, allocations: 8 kB / 352.6 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.295e-05/0.1365, allocations: 15.94 kB / 352.7 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.985e-05/0.1366, allocations: 23.91 kB / 352.7 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.445e-05/0.1367, allocations: 51.73 kB / 352.7 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001772/0.1368, allocations: 95.95 kB / 352.8 MB, free: 1.629 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1369, allocations: 3.938 kB / 352.8 MB, free: 1.625 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1369, allocations: 0 / 352.8 MB, free: 1.625 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.1369, allocations: 0 / 352.8 MB, free: 1.625 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.00064/0.1375, allocations: 399.3 kB / 353.2 MB, free: 1.188 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.1376, allocations: 16.03 kB / 353.2 MB, free: 1.172 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.082e-05/0.1376, allocations: 12.84 kB / 353.2 MB, free: 1.16 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002093/0.1378, allocations: 192.1 kB / 353.4 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.1379, allocations: 8.562 kB / 353.4 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.267e-05/0.1379, allocations: 12.28 kB / 353.5 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002877/0.1382, allocations: 118.3 kB / 353.6 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.1382, allocations: 3.938 kB / 353.6 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.674e-05/0.1382, allocations: 8 kB / 353.6 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.1383, allocations: 4 kB / 353.6 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000221/0.1385, allocations: 75.89 kB / 353.7 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007176/0.1392, allocations: 0.5246 MB / 354.2 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002086/0.1394, allocations: 78.55 kB / 354.3 MB, free: 24 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001327/0.1396, allocations: 40.83 kB / 354.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.1396, allocations: 3.984 kB / 354.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.619e-05/0.1396, allocations: 34.56 kB / 354.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.953e-06/0.1396, allocations: 0 / 354.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004291/0.1401, allocations: 121.9 kB / 354.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.1401, allocations: 55.41 kB / 354.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.1402, allocations: 121.8 kB / 354.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.815e-05/0.1403, allocations: 29.7 kB / 354.7 MB, free: 15.58 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.092e-05/0.1403, allocations: 123.8 kB / 354.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.631e-05/0.1404, allocations: 27.64 kB / 354.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.119e-05/0.1404, allocations: 29.7 kB / 354.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.1406, allocations: 322.8 kB / 355.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001115/0.1407, allocations: 35.97 kB / 355.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001169/0.1408, allocations: 64.27 kB / 355.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00023/0.141, allocations: 108.1 kB / 355.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1411, allocations: 0 / 355.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003011/0.1414, allocations: 137.4 kB / 355.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.1414, allocations: 7.984 kB / 355.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.1414, allocations: 8.078 kB / 355.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.1414, allocations: 0 / 355.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.1416, allocations: 35.92 kB / 355.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.1416, allocations: 7.984 kB / 355.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.92e-05/0.1417, allocations: 19.95 kB / 355.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-06/0.1417, allocations: 4 kB / 355.6 MB, free: 14.61 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.818e-05/0.1418, allocations: 121.8 kB / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.336e-05/0.1419, allocations: 11.84 kB / 355.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.968e-05/0.1419, allocations: 12.38 kB / 355.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.1419, allocations: 0 / 355.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.1419, allocations: 0 / 355.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.1419, allocations: 3.984 kB / 355.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001953/0.1421, allocations: 193.6 kB / 355.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1421, allocations: 4 kB / 355.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000137/0.1423, allocations: 19.98 kB / 355.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.1423, allocations: 0 / 355.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.1423, allocations: 7.984 kB / 355.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1423, allocations: 0 / 355.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1423, allocations: 0 / 355.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004293/0.1428, allocations: 243.2 kB / 356.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.862e-05/0.1428, allocations: 85.02 kB / 356.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.1429, allocations: 0 / 356.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.033e-05/0.1429, allocations: 8.031 kB / 356.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.581e-05/0.143, allocations: 0 / 356.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.143, allocations: 4 kB / 356.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.755e-05/0.1431, allocations: 102.1 kB / 356.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1431, allocations: 0 / 356.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002596/0.1433, allocations: 27.84 kB / 356.4 MB, free: 13.69 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * 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 (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001029/0.1435, allocations: 107.3 kB / 356.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002917/0.1438, allocations: 87.83 kB / 356.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.1438, allocations: 0 / 356.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001049/0.1439, allocations: 35.91 kB / 356.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004086/0.1443, allocations: 34.69 kB / 356.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007431/0.145, allocations: 364.6 kB / 357 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002817/0.1453, allocations: 0.704 MB / 357.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.474e-05/0.1454, allocations: 4.438 kB / 357.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.359e-05/0.1454, allocations: 15.44 kB / 357.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1454, allocations: 0 / 357.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of Templates: time 0.003601/0.1491, allocations: 0.9835 MB / 358.7 MB, free: 11.31 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches