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.0009126/0.0009128, allocations: 91.11 kB / 16.31 MB, free: 5.543 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.001146/0.001146, allocations: 178.4 kB / 17.21 MB, free: 5.461 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.527/1.527, allocations: 223.3 MB / 241.2 MB, free: 356 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000276/0.0002761, allocations: 8 kB / 300.8 MB, free: 6.488 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1377, allocations: 50.43 MB / 351.2 MB, free: 4.047 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.002238/0.14, allocations: 1.535 MB / 352.8 MB, free: 2.496 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007068/0.1408, allocations: 423.3 kB / 353.2 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.174e-05/0.1409, allocations: 4 kB / 353.2 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.932e-05/0.141, allocations: 11.86 kB / 353.2 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.788e-05/0.141, allocations: 23.78 kB / 353.2 MB, free: 2.039 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001446/0.1412, allocations: 23.97 kB / 353.3 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001402/0.1413, allocations: 95.58 kB / 353.3 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001913/0.1415, allocations: 33.58 kB / 353.4 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.775e-05/0.1416, allocations: 27.86 kB / 353.4 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.384e-05/0.1417, allocations: 39.83 kB / 353.4 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.782e-05/0.1417, allocations: 7.938 kB / 353.5 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.659e-05/0.1417, allocations: 4 kB / 353.5 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.867e-05/0.1418, allocations: 11.94 kB / 353.5 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.63e-05/0.1418, allocations: 45.62 kB / 353.5 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001022/0.1419, allocations: 64.09 kB / 353.6 MB, free: 1.684 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.1419, allocations: 0 / 353.6 MB, free: 1.684 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.1419, allocations: 4 kB / 353.6 MB, free: 1.68 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.142, allocations: 0 / 353.6 MB, free: 1.68 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.0005229/0.1425, allocations: 407.1 kB / 354 MB, free: 1.234 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.641e-05/0.1425, allocations: 8.031 kB / 354 MB, free: 1.227 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.62e-05/0.1426, allocations: 11.86 kB / 354 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001984/0.1428, allocations: 186.9 kB / 354.2 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.28e-05/0.1428, allocations: 12.19 kB / 354.2 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.11e-05/0.1429, allocations: 15.91 kB / 354.2 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002828/0.1432, allocations: 120.7 kB / 354.3 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.1432, allocations: 0 / 354.3 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.1432, allocations: 0 / 354.3 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.1432, allocations: 7.953 kB / 354.3 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002274/0.1434, allocations: 87.88 kB / 354.4 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000773/0.1442, allocations: 0.5208 MB / 354.9 MB, free: 160 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001911/0.1444, allocations: 78.61 kB / 355 MB, free: 72 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.1446, allocations: 52.81 kB / 355.1 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.157e-05/0.1446, allocations: 3.938 kB / 355.1 MB, free: 12 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/0.1446, allocations: 34.56 kB / 355.1 MB, free: 15.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.1446, allocations: 3.938 kB / 355.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004029/0.1451, allocations: 141.7 kB / 355.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.761e-05/0.1451, allocations: 55.41 kB / 355.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.941e-05/0.1452, allocations: 117.8 kB / 355.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.1452, allocations: 29.7 kB / 355.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.21e-05/0.1453, allocations: 115.8 kB / 355.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.409e-05/0.1454, allocations: 27.8 kB / 355.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-06/0.1454, allocations: 4 kB / 355.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.1455, allocations: 318.8 kB / 355.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001142/0.1456, allocations: 39.97 kB / 355.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001137/0.1457, allocations: 72.2 kB / 356 MB, free: 15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001091/0.1459, allocations: 43.98 kB / 356.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1459, allocations: 3.938 kB / 356.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002803/0.1462, allocations: 149.4 kB / 356.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.1462, allocations: 4 kB / 356.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.1462, allocations: 0 / 356.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.1462, allocations: 4.125 kB / 356.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001638/0.1464, allocations: 43.88 kB / 356.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.1464, allocations: 0 / 356.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.331e-05/0.1465, allocations: 19.83 kB / 356.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.161e-05/0.1465, allocations: 8 kB / 356.3 MB, free: 14.72 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.737e-05/0.1466, allocations: 113.8 kB / 356.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.758e-05/0.1466, allocations: 7.906 kB / 356.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.885e-05/0.1467, allocations: 20.36 kB / 356.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.1467, allocations: 0 / 356.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.1467, allocations: 7.891 kB / 356.4 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.1467, allocations: 0 / 356.4 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002135/0.1469, allocations: 193.6 kB / 356.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.147, allocations: 7.984 kB / 356.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001344/0.1471, allocations: 27.98 kB / 356.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.1471, allocations: 0 / 356.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.1471, allocations: 0 / 356.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1471, allocations: 4 kB / 356.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1471, allocations: 4 kB / 356.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000512/0.1476, allocations: 243.3 kB / 356.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.802e-05/0.1478, allocations: 85.02 kB / 357 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.052e-05/0.1478, allocations: 3.938 kB / 357 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/0.1479, allocations: 19.97 kB / 357 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.476e-05/0.148, allocations: 3.984 kB / 357 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.693e-06/0.148, allocations: 4 kB / 357 MB, free: 13.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.114e-05/0.1481, allocations: 93.94 kB / 357.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1481, allocations: 8 kB / 357.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002591/0.1484, allocations: 27.89 kB / 357.1 MB, free: 13.77 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001688/0.1485, allocations: 95.25 kB / 357.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003049/0.1488, allocations: 100.1 kB / 357.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1489, allocations: 0 / 357.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001132/0.149, allocations: 44.3 kB / 357.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004518/0.1494, allocations: 20.92 kB / 357.4 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009951/0.1504, allocations: 435.5 kB / 357.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004686/0.1509, allocations: 0.7082 MB / 358.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.793e-05/0.151, allocations: 8.422 kB / 358.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.798e-05/0.1511, allocations: 11.44 kB / 358.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1511, allocations: 0 / 358.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of Templates: time 0.00381/0.1549, allocations: 0.849 MB / 359.4 MB, free: 11.46 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