Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001964/0.001964, allocations: 196.9 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 226.5 MB / 244.3 MB, free: 6.582 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007458/0.0007456, allocations: 102.1 kB / 296.4 MB, free: 6.777 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000208/0.000208, allocations: 8 kB / 356.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2047/0.2049, allocations: 51.29 MB / 407.5 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.001333/0.2063, allocations: 1.155 MB / 408.6 MB, free: 26.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002295/0.2066, allocations: 99.77 kB / 408.7 MB, free: 26.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.482e-05/0.2066, allocations: 3.938 kB / 408.7 MB, free: 26.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.466e-05/0.2067, allocations: 0 / 408.7 MB, free: 26.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 2.95e-05/0.2067, allocations: 2.156 kB / 408.7 MB, free: 26.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002347/0.2069, allocations: 27.91 kB / 408.8 MB, free: 26.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.917e-05/0.207, allocations: 19.94 kB / 408.8 MB, free: 26.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.077e-05/0.2071, allocations: 7.984 kB / 408.8 MB, free: 26.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.904e-05/0.2071, allocations: 11.94 kB / 408.8 MB, free: 26.47 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.997e-05/0.2072, allocations: 4.688 kB / 408.8 MB, free: 26.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.372e-05/0.2072, allocations: 3.938 kB / 408.8 MB, free: 26.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.738e-06/0.2072, allocations: 0.625 kB / 408.8 MB, free: 26.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.257e-05/0.2072, allocations: 11.45 kB / 408.8 MB, free: 26.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.282e-05/0.2073, allocations: 33.64 kB / 408.9 MB, free: 26.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 4.615e-05/0.2073, allocations: 15.95 kB / 408.9 MB, free: 26.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.2073, allocations: 0 / 408.9 MB, free: 26.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2073, allocations: 0 / 408.9 MB, free: 26.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.2074, allocations: 4 kB / 408.9 MB, free: 26.39 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000321/0.2077, allocations: 336.2 kB / 409.2 MB, free: 26.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.2077, allocations: 8.781 kB / 409.2 MB, free: 26.01 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.14e-05/0.2078, allocations: 0 / 409.2 MB, free: 26.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.2079, allocations: 195.9 kB / 409.4 MB, free: 25.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.534e-06/0.2079, allocations: 0 / 409.4 MB, free: 25.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.174e-05/0.2079, allocations: 4 kB / 409.4 MB, free: 25.78 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002645/0.2082, allocations: 118.2 kB / 409.5 MB, free: 25.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.2082, allocations: 0.625 kB / 409.5 MB, free: 25.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.085e-06/0.2082, allocations: 0 / 409.5 MB, free: 25.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.2082, allocations: 3.438 kB / 409.5 MB, free: 25.65 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.035e-05/0.2083, allocations: 19.98 kB / 409.6 MB, free: 25.63 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.713e-05/0.2084, allocations: 153.7 kB / 409.7 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001318/0.2086, allocations: 60.42 kB / 409.8 MB, free: 25.37 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.255e-05/0.2086, allocations: 32.92 kB / 409.8 MB, free: 25.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.499e-05/0.2086, allocations: 4 kB / 409.8 MB, free: 25.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.522e-05/0.2087, allocations: 34.52 kB / 409.8 MB, free: 25.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.52e-07/0.2087, allocations: 0 / 409.8 MB, free: 25.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001923/0.2089, allocations: 73.67 kB / 409.9 MB, free: 25.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.2089, allocations: 59.33 kB / 410 MB, free: 25.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.409e-05/0.209, allocations: 109.8 kB / 410.1 MB, free: 25.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.372e-06/0.209, allocations: 25.7 kB / 410.1 MB, free: 24.99 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.987e-05/0.209, allocations: 88.12 kB / 410.2 MB, free: 24.9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.468e-06/0.209, allocations: 0 / 410.2 MB, free: 24.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.815e-06/0.209, allocations: 4 kB / 410.2 MB, free: 24.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.842e-05/0.2091, allocations: 314.8 kB / 410.5 MB, free: 24.58 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.306e-06/0.2091, allocations: 0 / 410.5 MB, free: 24.58 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.824e-05/0.2091, allocations: 31.42 kB / 410.5 MB, free: 24.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.816e-05/0.2091, allocations: 12 kB / 410.5 MB, free: 24.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2091, allocations: 0 / 410.5 MB, free: 24.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.658e-05/0.2092, allocations: 53.58 kB / 410.6 MB, free: 24.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.2092, allocations: 7.984 kB / 410.6 MB, free: 24.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.2092, allocations: 3.953 kB / 410.6 MB, free: 24.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/0.2093, allocations: 8.125 kB / 410.6 MB, free: 24.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.421e-05/0.2093, allocations: 4 kB / 410.6 MB, free: 24.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.2093, allocations: 0 / 410.6 MB, free: 24.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.032e-05/0.2093, allocations: 4 kB / 410.6 MB, free: 24.44 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.637e-06/0.2093, allocations: 3.938 kB / 410.6 MB, free: 24.43 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: 3 (assignClock1.y,assignClock1.u,step.y) * 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 5.109e-05/0.2094, allocations: 117.8 kB / 410.7 MB, free: 24.31 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.018e-05/0.2095, allocations: 65.8 kB / 410.8 MB, free: 24.24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.701e-05/0.2095, allocations: 15.91 kB / 410.8 MB, free: 24.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2095, allocations: 4 kB / 410.8 MB, free: 24.21 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.2096, allocations: 3.984 kB / 410.8 MB, free: 24.2 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.2096, allocations: 0 / 410.8 MB, free: 24.2 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.074e-05/0.2096, allocations: 153.7 kB / 411 MB, free: 24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2096, allocations: 0 / 411 MB, free: 24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.689e-05/0.2097, allocations: 11.98 kB / 411 MB, free: 23.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.2097, allocations: 0 / 411 MB, free: 23.99 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.281e-06/0.2097, allocations: 256 / 411 MB, free: 23.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2097, allocations: 4 kB / 411 MB, free: 23.99 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2097, allocations: 7.953 kB / 411 MB, free: 23.98 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001038/0.2098, allocations: 85.11 kB / 411.1 MB, free: 23.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.719e-05/0.2098, allocations: 85.05 kB / 411.2 MB, free: 23.78 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.152e-05/0.2099, allocations: 0 / 411.2 MB, free: 23.78 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.499e-05/0.2099, allocations: 4 kB / 411.2 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.276e-06/0.2099, allocations: 7.922 kB / 411.2 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-06/0.2099, allocations: 7.953 kB / 411.2 MB, free: 23.76 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.208e-05/0.2099, allocations: 83.28 kB / 411.3 MB, free: 23.68 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2099, allocations: 0 / 411.3 MB, free: 23.68 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001731/0.2101, allocations: 4 kB / 411.3 MB, free: 23.67 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.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 0.0001131/0.2102, allocations: 100.1 kB / 411.4 MB, free: 23.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000106/0.2103, allocations: 24.17 kB / 411.4 MB, free: 23.54 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2104, allocations: 8 kB / 411.4 MB, free: 23.54 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.41e-07/0.2104, allocations: 0 / 411.4 MB, free: 23.54 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002091/0.2106, allocations: 31.02 kB / 411.4 MB, free: 23.51 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002243/0.2108, allocations: 146.2 kB / 411.6 MB, free: 23.33 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001066/0.2109, allocations: 0.677 MB / 412.2 MB, free: 22.63 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.989e-05/0.211, allocations: 15.44 kB / 412.3 MB, free: 22.61 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.211, allocations: 0 / 412.3 MB, free: 22.61 MB / 298.7 MB Notification: Performance of Templates: time 0.00142/0.2124, allocations: 0.5387 MB / 412.8 MB, free: 22.08 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches