Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001589/0.001589, allocations: 192 kB / 18.63 MB, free: 4.375 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.451/1.451, allocations: 222.9 MB / 242.3 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 51.08 kB / 302.1 MB, free: 5.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1141, allocations: 49.44 MB / 351.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.002809/0.1169, allocations: 1.503 MB / 353 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000366/0.1173, allocations: 149 kB / 353.2 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.053e-05/0.1174, allocations: 0 / 353.2 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.067e-05/0.1175, allocations: 3.938 kB / 353.2 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001254/0.1176, allocations: 15.92 kB / 353.2 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002328/0.1179, allocations: 31.84 kB / 353.2 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001091/0.118, allocations: 39.84 kB / 353.2 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.1181, allocations: 12 kB / 353.3 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.551e-05/0.1181, allocations: 15.92 kB / 353.3 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.836e-05/0.1182, allocations: 11.94 kB / 353.3 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.684e-05/0.1182, allocations: 4 kB / 353.3 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.498e-06/0.1182, allocations: 0 / 353.3 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.991e-05/0.1183, allocations: 15.86 kB / 353.3 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.391e-05/0.1183, allocations: 31.81 kB / 353.3 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001005/0.1184, allocations: 47.8 kB / 353.4 MB, free: 1.785 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1184, allocations: 0 / 353.4 MB, free: 1.785 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.1185, allocations: 4 kB / 353.4 MB, free: 1.781 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.1185, allocations: 0 / 353.4 MB, free: 1.781 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004618/0.1189, allocations: 363.2 kB / 353.7 MB, free: 1.375 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.119, allocations: 8.031 kB / 353.7 MB, free: 1.367 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.822e-05/0.119, allocations: 8.844 kB / 353.8 MB, free: 1.359 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002317/0.1193, allocations: 197 kB / 353.9 MB, free: 1.129 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.1193, allocations: 4.375 kB / 353.9 MB, free: 1.125 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.394e-05/0.1193, allocations: 4.375 kB / 354 MB, free: 1.121 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003012/0.1196, allocations: 121.4 kB / 354.1 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.1196, allocations: 4.188 kB / 354.1 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.1196, allocations: 7.938 kB / 354.1 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.1196, allocations: 0 / 354.1 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.427e-05/0.1197, allocations: 19.92 kB / 354.1 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003113/0.12, allocations: 253.8 kB / 354.4 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002003/0.1203, allocations: 150.2 kB / 354.5 MB, free: 480 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.96e-05/0.1203, allocations: 25.78 kB / 354.5 MB, free: 448 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.1204, allocations: 3.984 kB / 354.5 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.751e-05/0.1204, allocations: 30.56 kB / 354.6 MB, free: 404 kB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.1204, allocations: 0 / 354.6 MB, free: 404 kB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002518/0.1206, allocations: 81.66 kB / 354.6 MB, free: 316 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.149e-05/0.1207, allocations: 81.14 kB / 354.7 MB, free: 216 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.1208, allocations: 136.5 kB / 354.8 MB, free: 68 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.133e-05/0.1209, allocations: 29.7 kB / 354.9 MB, free: 32 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.24e-05/0.121, allocations: 84.12 kB / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.149e-05/0.121, allocations: 8 kB / 355 MB, free: 15.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.274e-05/0.121, allocations: 17.62 kB / 355 MB, free: 15.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.1211, allocations: 319 kB / 355.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.86e-05/0.1212, allocations: 11.98 kB / 355.3 MB, free: 15.58 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.708e-05/0.1212, allocations: 35.36 kB / 355.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.328e-05/0.1213, allocations: 47.42 kB / 355.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1213, allocations: 3.938 kB / 355.4 MB, free: 15.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001219/0.1214, allocations: 61.56 kB / 355.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.1215, allocations: 11.94 kB / 355.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.1215, allocations: 0 / 355.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.1215, allocations: 0 / 355.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.637e-05/0.1216, allocations: 16.11 kB / 355.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.1216, allocations: 0 / 355.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.304e-05/0.1216, allocations: 7.938 kB / 355.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.794e-06/0.1216, allocations: 8 kB / 355.5 MB, free: 15.36 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 7.942e-05/0.1217, allocations: 133.6 kB / 355.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.632e-05/0.1218, allocations: 45.61 kB / 355.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.751e-05/0.1219, allocations: 8.234 kB / 355.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1219, allocations: 7.938 kB / 355.7 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1219, allocations: 0 / 355.7 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1219, allocations: 4 kB / 355.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001679/0.1221, allocations: 169.6 kB / 355.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.1221, allocations: 4 kB / 355.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.651e-05/0.1221, allocations: 4 kB / 355.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/0.1221, allocations: 4 kB / 355.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.1222, allocations: 0 / 355.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.1222, allocations: 0 / 355.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.1222, allocations: 3.984 kB / 355.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001729/0.1223, allocations: 176.2 kB / 356 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.95e-05/0.1224, allocations: 89 kB / 356.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.1224, allocations: 0 / 356.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.138e-05/0.1225, allocations: 7.984 kB / 356.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.835e-05/0.1225, allocations: 4 kB / 356.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.437e-06/0.1225, allocations: 0 / 356.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.125e-05/0.1226, allocations: 99.27 kB / 356.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1226, allocations: 0 / 356.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002252/0.1228, allocations: 12 kB / 356.3 MB, free: 14.5 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.0001073/0.123, allocations: 99.23 kB / 356.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001426/0.1231, allocations: 31.92 kB / 356.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1231, allocations: 0 / 356.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.151e-05/0.1231, allocations: 4 kB / 356.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003254/0.1235, allocations: 32.2 kB / 356.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003176/0.1238, allocations: 154.3 kB / 356.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.1241, allocations: 0.6913 MB / 357.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.55e-05/0.1241, allocations: 4 kB / 357.3 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.599e-05/0.1242, allocations: 7.438 kB / 357.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1242, allocations: 3.938 kB / 357.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of Templates: time 0.002695/0.1269, allocations: 0.4981 MB / 357.8 MB, free: 12.92 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches