Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001433/0.001433, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002022/0.002022, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 65.34 kB / 306.9 MB, free: 0.6211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1513, allocations: 50.53 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.004487/0.1559, allocations: 1.559 MB / 359 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.1574, allocations: 0.5298 MB / 359.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001402/0.1576, allocations: 0 / 359.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.003e-05/0.1577, allocations: 3.938 kB / 359.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002313/0.158, allocations: 19.86 kB / 359.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004671/0.1585, allocations: 51.83 kB / 359.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001419/0.1586, allocations: 35.86 kB / 359.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001846/0.1588, allocations: 23.95 kB / 359.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001848/0.159, allocations: 23.86 kB / 359.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.918e-05/0.1591, allocations: 19.86 kB / 359.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.203e-05/0.1591, allocations: 4 kB / 359.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.464e-05/0.1592, allocations: 4 kB / 359.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.324e-05/0.1593, allocations: 11.98 kB / 359.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.906e-05/0.1593, allocations: 27.81 kB / 359.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002023/0.1595, allocations: 55.8 kB / 359.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.1596, allocations: 0 / 359.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1596, allocations: 0 / 359.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.777e-06/0.1596, allocations: 3.938 kB / 359.8 MB, free: 11.71 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0007144/0.1603, allocations: 375.3 kB / 360.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.559e-05/0.1604, allocations: 8.031 kB / 360.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002451/0.1606, allocations: 20.83 kB / 360.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002991/0.1609, allocations: 196.1 kB / 360.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.161, allocations: 384 / 360.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.161, allocations: 4.375 kB / 360.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003684/0.1614, allocations: 93.41 kB / 360.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.1614, allocations: 3.938 kB / 360.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.1614, allocations: 0 / 360.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.1614, allocations: 8 kB / 360.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.131e-05/0.1615, allocations: 11.98 kB / 360.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004401/0.162, allocations: 261.7 kB / 360.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.899e-05/0.1621, allocations: 49.14 kB / 360.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.658e-05/0.1621, allocations: 21.77 kB / 360.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.287e-05/0.1622, allocations: 4 kB / 360.9 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.662e-05/0.1622, allocations: 34.56 kB / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.1622, allocations: 0 / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002969/0.1625, allocations: 61.83 kB / 361 MB, free: 10.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.827e-05/0.1626, allocations: 89.08 kB / 361.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001444/0.1628, allocations: 136.6 kB / 361.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.832e-05/0.1628, allocations: 25.7 kB / 361.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.216e-05/0.1628, allocations: 96.12 kB / 361.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.201e-05/0.1629, allocations: 3.906 kB / 361.3 MB, free: 10 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.841e-05/0.1629, allocations: 13.72 kB / 361.3 MB, free: 9.984 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.1631, allocations: 314.8 kB / 361.6 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.557e-05/0.1631, allocations: 11.98 kB / 361.7 MB, free: 9.656 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.47e-05/0.1632, allocations: 21.72 kB / 361.7 MB, free: 9.629 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.201e-05/0.1633, allocations: 29.58 kB / 361.7 MB, free: 9.594 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.1633, allocations: 4 kB / 361.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001213/0.1634, allocations: 65.58 kB / 361.8 MB, free: 9.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.1635, allocations: 4 kB / 361.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.1635, allocations: 0 / 361.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.1635, allocations: 0 / 361.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.641e-05/0.1636, allocations: 4 kB / 361.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.1636, allocations: 4 kB / 361.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.699e-05/0.1636, allocations: 7.922 kB / 361.8 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.1636, allocations: 0 / 361.8 MB, free: 9.5 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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 0.000103/0.1638, allocations: 125.8 kB / 361.9 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.62e-05/0.1638, allocations: 45.61 kB / 362 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.881e-05/0.1639, allocations: 15.81 kB / 362 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.1639, allocations: 0 / 362 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.1639, allocations: 7.938 kB / 362 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.1639, allocations: 0 / 362 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002557/0.1642, allocations: 169.6 kB / 362.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1642, allocations: 0 / 362.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.192e-05/0.1642, allocations: 4 kB / 362.1 MB, free: 9.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.1642, allocations: 7.984 kB / 362.2 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.1642, allocations: 32 / 362.2 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1643, allocations: 4 kB / 362.2 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1643, allocations: 0 / 362.2 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001982/0.1645, allocations: 168.2 kB / 362.3 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.15e-05/0.1646, allocations: 89.08 kB / 362.4 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.081e-05/0.1646, allocations: 4 kB / 362.4 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.763e-05/0.1647, allocations: 12.02 kB / 362.4 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.566e-05/0.1647, allocations: 0 / 362.4 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-06/0.1647, allocations: 0 / 362.4 MB, free: 8.754 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.978e-05/0.1648, allocations: 114.2 kB / 362.5 MB, free: 8.645 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1648, allocations: 0 / 362.5 MB, free: 8.645 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002213/0.165, allocations: 4 kB / 362.5 MB, free: 8.641 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (2): * Single equations (assignments): 2 * 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.0001512/0.1652, allocations: 95.25 kB / 362.6 MB, free: 8.539 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002039/0.1654, allocations: 27.92 kB / 362.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1654, allocations: 0 / 362.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.903e-05/0.1655, allocations: 8 kB / 362.7 MB, free: 8.504 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004584/0.1659, allocations: 19.89 kB / 362.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004254/0.1664, allocations: 171.6 kB / 362.9 MB, free: 8.289 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003782/0.1668, allocations: 0.6885 MB / 363.5 MB, free: 7.574 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.415e-05/0.1668, allocations: 0 / 363.5 MB, free: 7.574 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.711e-05/0.1668, allocations: 11.44 kB / 363.6 MB, free: 7.562 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1669, allocations: 0 / 363.6 MB, free: 7.562 MB / 302.1 MB Notification: Performance of Templates: time 0.003596/0.1705, allocations: 484 kB / 364 MB, free: 7.094 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches