Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.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.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001223/0.001223, allocations: 104 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001479/0.001479, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001297, allocations: 64.61 kB / 306.9 MB, free: 0.6367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1503, allocations: 50.54 MB / 357.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked): time 0.003804/0.1542, allocations: 1.489 MB / 359 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004529/0.1547, allocations: 131.6 kB / 359.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.1548, allocations: 4 kB / 359.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.637e-05/0.1549, allocations: 7.922 kB / 359.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001428/0.1551, allocations: 7.938 kB / 359.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003299/0.1554, allocations: 35.91 kB / 359.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001094/0.1555, allocations: 23.92 kB / 359.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001233/0.1557, allocations: 8 kB / 359.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.598e-05/0.1557, allocations: 15.92 kB / 359.2 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.527e-05/0.1558, allocations: 11.94 kB / 359.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.533e-05/0.1558, allocations: 4 kB / 359.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.431e-05/0.1558, allocations: 0 / 359.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.768e-05/0.1559, allocations: 11.92 kB / 359.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.253e-05/0.1559, allocations: 23.86 kB / 359.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001189/0.1561, allocations: 35.83 kB / 359.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1561, allocations: 0 / 359.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1561, allocations: 0 / 359.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.1561, allocations: 0 / 359.3 MB, free: 12.29 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004976/0.1566, allocations: 363.5 kB / 359.6 MB, free: 11.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.1566, allocations: 16.02 kB / 359.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.559e-05/0.1567, allocations: 8.844 kB / 359.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.1569, allocations: 194.7 kB / 359.8 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.828e-05/0.1569, allocations: 384 / 359.8 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.637e-05/0.157, allocations: 4.375 kB / 359.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000256/0.1572, allocations: 89.61 kB / 359.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.1573, allocations: 4.188 kB / 359.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.1573, allocations: 3.938 kB / 359.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.1573, allocations: 0 / 359.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.815e-05/0.1574, allocations: 8 kB / 360 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003999/0.1578, allocations: 257.8 kB / 360.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.067e-05/0.1579, allocations: 45.09 kB / 360.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.033e-05/0.1579, allocations: 17.78 kB / 360.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.1579, allocations: 3.984 kB / 360.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/0.158, allocations: 34.5 kB / 360.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 2.605e-06/0.158, allocations: 4 kB / 360.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002411/0.1582, allocations: 61.62 kB / 360.4 MB, free: 11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.572e-05/0.1583, allocations: 81.05 kB / 360.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.1584, allocations: 129.8 kB / 360.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.1584, allocations: 25.7 kB / 360.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.122e-05/0.1585, allocations: 88.14 kB / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.357e-06/0.1585, allocations: 0 / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.67e-05/0.1586, allocations: 21.61 kB / 360.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1587, allocations: 319 kB / 361 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3e-05/0.1587, allocations: 4 kB / 361 MB, free: 10.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.357e-05/0.1588, allocations: 17.7 kB / 361 MB, free: 10.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.112e-05/0.1588, allocations: 21.72 kB / 361.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.1588, allocations: 0 / 361.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001083/0.1589, allocations: 61.56 kB / 361.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.159, allocations: 6.812 kB / 361.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.159, allocations: 0 / 361.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.159, allocations: 4 kB / 361.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.92e-05/0.159, allocations: 0 / 361.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.014e-06/0.159, allocations: 0 / 361.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.601e-05/0.1591, allocations: 0 / 361.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.285e-06/0.1591, allocations: 8 kB / 361.1 MB, free: 10.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001092/0.1592, allocations: 129.6 kB / 361.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.19e-05/0.1593, allocations: 37.67 kB / 361.3 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.615e-05/0.1593, allocations: 19.47 kB / 361.3 MB, free: 9.953 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.1593, allocations: 0 / 361.3 MB, free: 9.953 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.1593, allocations: 3.984 kB / 361.3 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.1593, allocations: 4 kB / 361.3 MB, free: 9.945 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001848/0.1595, allocations: 161.6 kB / 361.5 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1595, allocations: 0 / 361.5 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.532e-06/0.1595, allocations: 0 / 361.5 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1596, allocations: 0 / 361.5 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.847e-06/0.1596, allocations: 3.984 kB / 361.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.1596, allocations: 8.031 kB / 361.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1596, allocations: 0 / 361.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001739/0.1598, allocations: 156.2 kB / 361.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.871e-05/0.1598, allocations: 85.09 kB / 361.7 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.802e-05/0.1599, allocations: 4 kB / 361.7 MB, free: 9.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.121e-05/0.1599, allocations: 4 kB / 361.7 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.616e-05/0.16, allocations: 4.031 kB / 361.7 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.16, allocations: 4 kB / 361.8 MB, free: 9.438 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.324e-05/0.16, allocations: 102.6 kB / 361.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1601, allocations: 3.938 kB / 361.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002522/0.1603, allocations: 4 kB / 361.9 MB, free: 9.332 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: 2 (sample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001143/0.1604, allocations: 103.2 kB / 362 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001259/0.1606, allocations: 24 kB / 362 MB, free: 9.199 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1606, allocations: 0 / 362 MB, free: 9.199 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.126e-05/0.1606, allocations: 11.98 kB / 362 MB, free: 9.188 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004127/0.161, allocations: 15.97 kB / 362 MB, free: 9.172 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003602/0.1614, allocations: 146.4 kB / 362.2 MB, free: 9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003246/0.1617, allocations: 0.6884 MB / 362.8 MB, free: 8.285 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.263e-05/0.1618, allocations: 0 / 362.8 MB, free: 8.285 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.693e-05/0.1618, allocations: 11.44 kB / 362.9 MB, free: 8.273 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1618, allocations: 0 / 362.9 MB, free: 8.273 MB / 302.1 MB Notification: Performance of Templates: time 0.003432/0.1653, allocations: 436.1 kB / 363.3 MB, free: 7.852 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches