Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001128/0.001128, allocations: 191.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 226.5 MB / 244.7 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008901/0.0008902, allocations: 106.4 kB / 296.8 MB, free: 6.863 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002531/0.0002532, allocations: 8 kB / 356.7 MB, free: 10.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.2652, allocations: 51.3 MB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.001634/0.2669, allocations: 1.226 MB / 409.3 MB, free: 26.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003314/0.2672, allocations: 135.7 kB / 409.4 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.823e-05/0.2673, allocations: 0 / 409.4 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.754e-05/0.2674, allocations: 4.562 kB / 409.4 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001298/0.2675, allocations: 0 / 409.4 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002276/0.2677, allocations: 41.38 kB / 409.5 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.629e-05/0.2678, allocations: 31.86 kB / 409.5 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.268, allocations: 15.98 kB / 409.5 MB, free: 26.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.007e-05/0.268, allocations: 8.469 kB / 409.5 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.361e-05/0.268, allocations: 11.94 kB / 409.5 MB, free: 26.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.486e-05/0.2681, allocations: 1.531 kB / 409.5 MB, free: 26.22 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.117e-05/0.2681, allocations: 0 / 409.5 MB, free: 26.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.89e-05/0.2681, allocations: 7.984 kB / 409.5 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.107e-05/0.2682, allocations: 45.52 kB / 409.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.912e-05/0.2682, allocations: 41.36 kB / 409.6 MB, free: 26.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2683, allocations: 0 / 409.6 MB, free: 26.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2683, allocations: 0 / 409.6 MB, free: 26.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.2683, allocations: 0 / 409.6 MB, free: 26.12 MB / 298.7 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.0003794/0.2687, allocations: 357.6 kB / 410 MB, free: 25.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.2687, allocations: 12.59 kB / 410 MB, free: 25.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.057e-05/0.2687, allocations: 8.844 kB / 410 MB, free: 25.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001626/0.2689, allocations: 193.7 kB / 410.2 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.2689, allocations: 5.188 kB / 410.2 MB, free: 25.47 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/0.269, allocations: 4.375 kB / 410.2 MB, free: 25.47 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002729/0.2692, allocations: 117.5 kB / 410.3 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.2693, allocations: 192 / 410.3 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.699e-06/0.2693, allocations: 3.938 kB / 410.3 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.238e-06/0.2693, allocations: 4 kB / 410.3 MB, free: 25.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.352e-05/0.2694, allocations: 25.34 kB / 410.3 MB, free: 25.31 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002605/0.2696, allocations: 261.8 kB / 410.6 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001699/0.2698, allocations: 146.2 kB / 410.7 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.745e-05/0.2699, allocations: 33.77 kB / 410.8 MB, free: 24.78 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.657e-05/0.2699, allocations: 0 / 410.8 MB, free: 24.78 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.2699, allocations: 34.55 kB / 410.8 MB, free: 24.74 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.012e-06/0.2699, allocations: 0 / 410.8 MB, free: 24.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002235/0.2702, allocations: 81.52 kB / 410.9 MB, free: 24.65 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.251e-05/0.2702, allocations: 85.23 kB / 411 MB, free: 24.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.743e-05/0.2703, allocations: 133.3 kB / 411.1 MB, free: 24.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.267e-06/0.2703, allocations: 25.7 kB / 411.1 MB, free: 24.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.277e-05/0.2704, allocations: 88.14 kB / 411.2 MB, free: 24.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.14e-05/0.2704, allocations: 3.984 kB / 411.2 MB, free: 24.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-06/0.2704, allocations: 4 kB / 411.2 MB, free: 24.28 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.039e-05/0.2705, allocations: 310.8 kB / 411.5 MB, free: 23.97 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.832e-05/0.2705, allocations: 12 kB / 411.5 MB, free: 23.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.752e-05/0.2706, allocations: 35.61 kB / 411.6 MB, free: 23.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.993e-05/0.2707, allocations: 51.36 kB / 411.6 MB, free: 23.85 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2707, allocations: 4 kB / 411.6 MB, free: 23.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001037/0.2708, allocations: 77.48 kB / 411.7 MB, free: 23.76 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.2708, allocations: 4 kB / 411.7 MB, free: 23.76 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.2708, allocations: 7.938 kB / 411.7 MB, free: 23.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.2708, allocations: 8.109 kB / 411.7 MB, free: 23.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.343e-05/0.2709, allocations: 8 kB / 411.7 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.2709, allocations: 0 / 411.7 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.439e-05/0.2709, allocations: 11.98 kB / 411.7 MB, free: 23.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.572e-06/0.2709, allocations: 7.938 kB / 411.7 MB, free: 23.71 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.3e-05/0.271, allocations: 121.8 kB / 411.8 MB, free: 23.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.698e-05/0.2711, allocations: 53.53 kB / 411.9 MB, free: 23.53 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.817e-05/0.2711, allocations: 16.25 kB / 411.9 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.2711, allocations: 0 / 411.9 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.2711, allocations: 0 / 411.9 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.2711, allocations: 0 / 411.9 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001212/0.2713, allocations: 173.5 kB / 412.1 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2713, allocations: 0 / 412.1 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.648e-05/0.2713, allocations: 11.98 kB / 412.1 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.2713, allocations: 0 / 412.1 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.2713, allocations: 4 kB / 412.1 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.2713, allocations: 0 / 412.1 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2714, allocations: 4 kB / 412.1 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001363/0.2715, allocations: 176.2 kB / 412.3 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.905e-05/0.2715, allocations: 89 kB / 412.4 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.2716, allocations: 0 / 412.4 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.884e-05/0.2716, allocations: 8 kB / 412.4 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.395e-05/0.2717, allocations: 8 kB / 412.4 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.2717, allocations: 0 / 412.4 MB, free: 22.95 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.398e-05/0.2717, allocations: 103.2 kB / 412.5 MB, free: 22.85 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2717, allocations: 4 kB / 412.5 MB, free: 22.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002178/0.272, allocations: 4 kB / 412.5 MB, free: 22.84 MB / 298.7 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 (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 8.798e-05/0.2721, allocations: 95.25 kB / 412.6 MB, free: 22.74 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001192/0.2722, allocations: 35.98 kB / 412.6 MB, free: 22.7 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2722, allocations: 0 / 412.6 MB, free: 22.7 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.257e-05/0.2722, allocations: 11.98 kB / 412.6 MB, free: 22.69 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003425/0.2726, allocations: 26.19 kB / 412.7 MB, free: 22.67 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002868/0.2729, allocations: 199.1 kB / 412.8 MB, free: 22.44 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001725/0.2731, allocations: 0.6887 MB / 413.5 MB, free: 21.72 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.77e-05/0.2731, allocations: 11.44 kB / 413.5 MB, free: 21.71 MB / 298.7 MB Notification: Performance of SimCode: time 3.4e-07/0.2731, allocations: 0 / 413.5 MB, free: 21.71 MB / 298.7 MB Notification: Performance of Templates: time 0.00195/0.2751, allocations: 0.6807 MB / 414.2 MB, free: 21.03 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches