Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001458/0.001458, allocations: 107.4 kB / 17.98 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0017/0.0017, allocations: 205.8 kB / 18.92 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.501/1.501, allocations: 227.4 MB / 247.1 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 69.5 kB / 307.1 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1214, allocations: 50.53 MB / 357.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.003773/0.1252, allocations: 1.566 MB / 359.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005227/0.1258, allocations: 143.5 kB / 359.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001375/0.126, allocations: 0 / 359.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.137e-05/0.1261, allocations: 0 / 359.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001825/0.1263, allocations: 11.92 kB / 359.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003611/0.1266, allocations: 31.91 kB / 359.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001452/0.1268, allocations: 43.86 kB / 359.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001451/0.1269, allocations: 11.98 kB / 359.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.527e-05/0.127, allocations: 23.91 kB / 359.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.085e-05/0.1271, allocations: 11.94 kB / 359.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.829e-05/0.1271, allocations: 3.938 kB / 359.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.871e-05/0.1271, allocations: 4 kB / 359.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.256e-05/0.1272, allocations: 11.92 kB / 359.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.166e-05/0.1272, allocations: 19.88 kB / 359.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001311/0.1274, allocations: 35.88 kB / 359.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.1274, allocations: 8 kB / 359.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1274, allocations: 0 / 359.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.1274, allocations: 0 / 359.6 MB, free: 12.48 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006817/0.1281, allocations: 367.5 kB / 359.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.567e-05/0.1282, allocations: 8.031 kB / 359.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.817e-05/0.1283, allocations: 12.83 kB / 359.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000273/0.1286, allocations: 188.1 kB / 360.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.1286, allocations: 12.38 kB / 360.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.409e-05/0.1286, allocations: 4.375 kB / 360.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004522/0.1291, allocations: 109.6 kB / 360.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.1291, allocations: 4.188 kB / 360.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.1291, allocations: 3.938 kB / 360.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.1292, allocations: 0 / 360.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001267/0.1293, allocations: 27.92 kB / 360.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004482/0.1298, allocations: 257.8 kB / 360.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002969/0.1301, allocations: 138.2 kB / 360.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.473e-05/0.1302, allocations: 29.77 kB / 360.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.743e-05/0.1302, allocations: 7.984 kB / 360.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/0.1302, allocations: 34.56 kB / 360.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.403e-06/0.1302, allocations: 0 / 360.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002761/0.1305, allocations: 77.52 kB / 360.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.212e-05/0.1306, allocations: 81.23 kB / 360.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000156/0.1308, allocations: 140.3 kB / 361 MB, free: 10.76 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.1308, allocations: 29.64 kB / 361.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.773e-05/0.1309, allocations: 84.14 kB / 361.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.155e-05/0.1309, allocations: 0 / 361.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.873e-05/0.131, allocations: 25.62 kB / 361.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.1311, allocations: 318.8 kB / 361.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.744e-05/0.1312, allocations: 8 kB / 361.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.076e-05/0.1313, allocations: 35.36 kB / 361.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.292e-05/0.1314, allocations: 47.42 kB / 361.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1314, allocations: 7.875 kB / 361.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001338/0.1315, allocations: 69.55 kB / 361.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.1315, allocations: 4 kB / 361.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.1316, allocations: 4 kB / 361.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.1316, allocations: 0 / 361.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.735e-05/0.1317, allocations: 8 kB / 361.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.1317, allocations: 0 / 361.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.061e-05/0.1317, allocations: 16.05 kB / 361.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.253e-06/0.1317, allocations: 0 / 361.7 MB, free: 10.06 MB / 302.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: 4 (step.y,sample1.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001116/0.1318, allocations: 129.7 kB / 361.8 MB, free: 9.926 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.819e-05/0.1319, allocations: 45.59 kB / 361.8 MB, free: 9.875 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.877e-05/0.132, allocations: 12.25 kB / 361.9 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.132, allocations: 0 / 361.9 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.132, allocations: 4 kB / 361.9 MB, free: 9.852 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.132, allocations: 0 / 361.9 MB, free: 9.852 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001795/0.1322, allocations: 169.6 kB / 362 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.1322, allocations: 4 kB / 362 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.84e-05/0.1323, allocations: 11.98 kB / 362 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-06/0.1323, allocations: 0 / 362 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.1323, allocations: 4 kB / 362.1 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.1323, allocations: 0 / 362.1 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.1323, allocations: 4 kB / 362.1 MB, free: 9.613 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002077/0.1325, allocations: 168.2 kB / 362.2 MB, free: 9.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.1327, allocations: 101 kB / 362.3 MB, free: 9.312 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.1327, allocations: 0 / 362.3 MB, free: 9.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.787e-05/0.1328, allocations: 0 / 362.3 MB, free: 9.312 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.163e-05/0.1328, allocations: 7.938 kB / 362.3 MB, free: 9.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.628e-06/0.1328, allocations: 0 / 362.3 MB, free: 9.305 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.923e-05/0.1329, allocations: 109.9 kB / 362.4 MB, free: 9.199 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1329, allocations: 0 / 362.4 MB, free: 9.199 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002273/0.1331, allocations: 4 kB / 362.4 MB, free: 9.195 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: 4 (step.y,assignClock.u,assignClock.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001261/0.1333, allocations: 103.2 kB / 362.5 MB, free: 9.086 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001514/0.1334, allocations: 27.92 kB / 362.6 MB, free: 9.059 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1334, allocations: 0 / 362.6 MB, free: 9.059 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.96e-05/0.1335, allocations: 11.98 kB / 362.6 MB, free: 9.047 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004112/0.1339, allocations: 32.41 kB / 362.6 MB, free: 9.016 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003846/0.1343, allocations: 188.4 kB / 362.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002822/0.1346, allocations: 0.6924 MB / 363.5 MB, free: 8.078 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.554e-05/0.1346, allocations: 11.38 kB / 363.5 MB, free: 8.066 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1346, allocations: 0 / 363.5 MB, free: 8.066 MB / 302.1 MB Notification: Performance of Templates: time 0.002335/0.137, allocations: 0.6945 MB / 364.2 MB, free: 7.375 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches