Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 108.8 kB / 16.92 MB, free: 6.145 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.001935/0.001936, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.415/1.415, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001168, allocations: 45.97 kB / 300.6 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1286, allocations: 49.44 MB / 350.1 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.004125/0.1327, allocations: 1.843 MB / 351.9 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001489/0.1343, allocations: 0.6971 MB / 352.6 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001739/0.1345, allocations: 0 / 352.6 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001627/0.1347, allocations: 27.73 kB / 352.6 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001724/0.1348, allocations: 19.8 kB / 352.6 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007074/0.1356, allocations: 155.3 kB / 352.8 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002293/0.1358, allocations: 143.6 kB / 352.9 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.136, allocations: 65.33 kB / 353 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001356/0.1361, allocations: 59.77 kB / 353.1 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001608/0.1363, allocations: 59.64 kB / 353.1 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.889e-05/0.1363, allocations: 16 kB / 353.1 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001593/0.1365, allocations: 51.97 kB / 353.2 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.208e-05/0.1366, allocations: 39.83 kB / 353.2 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.531e-05/0.1367, allocations: 79.53 kB / 353.3 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003181/0.137, allocations: 187.4 kB / 353.5 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.137, allocations: 4 kB / 353.5 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.137, allocations: 0 / 353.5 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.1371, allocations: 0 / 353.5 MB, free: 0.9648 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001002/0.1381, allocations: 479 kB / 354 MB, free: 460 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.1381, allocations: 11.89 kB / 354 MB, free: 448 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.026e-05/0.1382, allocations: 16.75 kB / 354 MB, free: 432 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004331/0.1386, allocations: 244 kB / 354.2 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.1387, allocations: 8.562 kB / 354.2 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.785e-05/0.1387, allocations: 20.06 kB / 354.2 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007403/0.1395, allocations: 316.6 kB / 354.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.1395, allocations: 4 kB / 354.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.463e-05/0.1395, allocations: 7.984 kB / 354.6 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.1395, allocations: 0 / 354.6 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002481/0.1398, allocations: 87.94 kB / 354.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004811/0.1403, allocations: 345.4 kB / 355 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004973/0.1408, allocations: 266.5 kB / 355.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002047/0.141, allocations: 105.6 kB / 355.4 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009487/0.1419, allocations: 0.5817 MB / 355.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.484e-05/0.142, allocations: 42.56 kB / 356 MB, free: 14.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.633e-06/0.142, allocations: 0 / 356 MB, free: 14.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006655/0.1427, allocations: 233.2 kB / 356.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.1428, allocations: 122.7 kB / 356.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002732/0.1431, allocations: 194.4 kB / 356.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.141e-05/0.1431, allocations: 29.7 kB / 356.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.02e-05/0.1432, allocations: 104.6 kB / 356.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.537e-05/0.1433, allocations: 23.73 kB / 356.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.468e-05/0.1434, allocations: 41.7 kB / 356.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.1436, allocations: 322.8 kB / 357 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.795e-05/0.1437, allocations: 39.97 kB / 357.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/0.1439, allocations: 161.1 kB / 357.2 MB, free: 12.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002871/0.1441, allocations: 208.1 kB / 357.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.1442, allocations: 0 / 357.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004153/0.1446, allocations: 217 kB / 357.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.1446, allocations: 8 kB / 357.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.1446, allocations: 4 kB / 357.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.179e-05/0.1447, allocations: 4 kB / 357.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001564/0.1448, allocations: 43.92 kB / 357.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.998e-05/0.1449, allocations: 20.5 kB / 357.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.145, allocations: 19.84 kB / 357.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.145, allocations: 12 kB / 357.7 MB, free: 12.17 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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.0001616/0.1452, allocations: 145.8 kB / 357.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003071/0.1455, allocations: 160 kB / 358 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003743/0.1459, allocations: 183.3 kB / 358.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.1459, allocations: 4 kB / 358.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.1459, allocations: 4 kB / 358.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.1459, allocations: 3.984 kB / 358.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002389/0.1462, allocations: 229.4 kB / 358.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.1462, allocations: 7.922 kB / 358.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001372/0.1463, allocations: 31.98 kB / 358.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.1463, allocations: 0 / 358.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.1464, allocations: 4 kB / 358.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.1464, allocations: 0 / 358.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.1464, allocations: 3.938 kB / 358.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000398/0.1468, allocations: 292 kB / 358.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.1469, allocations: 116.8 kB / 358.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.46e-05/0.1469, allocations: 4 kB / 358.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.1471, allocations: 15.98 kB / 358.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.647e-05/0.1471, allocations: 4 kB / 358.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.794e-05/0.1471, allocations: 11.94 kB / 358.9 MB, free: 10.87 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001194/0.1473, allocations: 143.2 kB / 359.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1473, allocations: 0 / 359.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003252/0.1476, allocations: 28 kB / 359.1 MB, free: 10.7 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: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001927/0.1478, allocations: 127.1 kB / 359.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003737/0.1482, allocations: 155.6 kB / 359.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.1482, allocations: 0 / 359.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.188e-05/0.1482, allocations: 12 kB / 359.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000599/0.1489, allocations: 146.8 kB / 359.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006721/0.1495, allocations: 340.9 kB / 359.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.1499, allocations: 0.7243 MB / 360.6 MB, free: 9.141 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.345e-05/0.1499, allocations: 21.55 kB / 360.6 MB, free: 9.121 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.011e-05/0.15, allocations: 23.42 kB / 360.6 MB, free: 9.098 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.15, allocations: 0 / 360.6 MB, free: 9.098 MB / 302.1 MB Notification: Performance of Templates: time 0.005797/0.1558, allocations: 2.346 MB / 363 MB, free: 6.77 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches