Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.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.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.00131/0.00131, allocations: 195 kB / 18 MB, free: 5.074 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.556/1.556, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 51.92 kB / 351.3 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4894/0.4909, allocations: 49.42 MB / 400.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked): time 0.003073/0.494, allocations: 1.502 MB / 402.2 MB, free: 7.406 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004565/0.4945, allocations: 131.6 kB / 402.3 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.484e-05/0.4946, allocations: 7.938 kB / 402.3 MB, free: 7.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.83e-05/0.4947, allocations: 7.922 kB / 402.4 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001288/0.4948, allocations: 0 / 402.4 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002575/0.4951, allocations: 39.84 kB / 402.4 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000115/0.4952, allocations: 27.92 kB / 402.4 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.4953, allocations: 15.98 kB / 402.4 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.767e-05/0.4954, allocations: 11.94 kB / 402.4 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.046e-05/0.4954, allocations: 11.91 kB / 402.5 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.84e-05/0.4955, allocations: 4 kB / 402.5 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.443e-05/0.4955, allocations: 0 / 402.5 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.646e-05/0.4956, allocations: 11.94 kB / 402.5 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.588e-05/0.4956, allocations: 15.88 kB / 402.5 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001347/0.4957, allocations: 43.77 kB / 402.5 MB, free: 7.082 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.4958, allocations: 4 kB / 402.5 MB, free: 7.078 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4958, allocations: 0 / 402.5 MB, free: 7.078 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.4958, allocations: 0 / 402.5 MB, free: 7.078 MB / 318.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.000443/0.4962, allocations: 366.3 kB / 402.9 MB, free: 6.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.4963, allocations: 8.031 kB / 402.9 MB, free: 6.664 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.932e-05/0.4963, allocations: 8.891 kB / 402.9 MB, free: 6.656 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000261/0.4966, allocations: 192.1 kB / 403.1 MB, free: 6.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.935e-05/0.4966, allocations: 12.38 kB / 403.1 MB, free: 6.418 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-06/0.4966, allocations: 384 / 403.1 MB, free: 6.418 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002379/0.4969, allocations: 81.67 kB / 403.2 MB, free: 6.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.4969, allocations: 4.125 kB / 403.2 MB, free: 6.316 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.4969, allocations: 3.938 kB / 403.2 MB, free: 6.312 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.4969, allocations: 0 / 403.2 MB, free: 6.312 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.752e-05/0.497, allocations: 19.97 kB / 403.2 MB, free: 6.293 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003754/0.4974, allocations: 257.8 kB / 403.5 MB, free: 5.988 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.54e-05/0.4975, allocations: 45.02 kB / 403.5 MB, free: 5.926 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.946e-05/0.4976, allocations: 17.84 kB / 403.5 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.4976, allocations: 8 kB / 403.5 MB, free: 5.895 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.4976, allocations: 30.56 kB / 403.6 MB, free: 5.855 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 1.212e-06/0.4976, allocations: 0 / 403.6 MB, free: 5.855 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003229/0.498, allocations: 57.58 kB / 403.6 MB, free: 5.793 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.4981, allocations: 77.11 kB / 403.7 MB, free: 5.699 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001848/0.4983, allocations: 142 kB / 403.8 MB, free: 5.551 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.705e-05/0.4983, allocations: 29.7 kB / 403.9 MB, free: 5.516 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.884e-05/0.4984, allocations: 84.08 kB / 404 MB, free: 5.43 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.48e-05/0.4984, allocations: 4 kB / 404 MB, free: 5.426 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.088e-05/0.4985, allocations: 13.72 kB / 404 MB, free: 5.406 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002568/0.4988, allocations: 314.8 kB / 404.3 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.527e-05/0.4988, allocations: 7.984 kB / 404.3 MB, free: 5.082 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.31e-05/0.4989, allocations: 13.72 kB / 404.3 MB, free: 5.062 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.237e-05/0.4989, allocations: 33.7 kB / 404.3 MB, free: 5.023 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4989, allocations: 0 / 404.3 MB, free: 5.023 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001091/0.4991, allocations: 53.53 kB / 404.4 MB, free: 4.965 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.787e-05/0.4991, allocations: 11.98 kB / 404.4 MB, free: 4.953 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.4991, allocations: 0 / 404.4 MB, free: 4.953 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.484e-05/0.4992, allocations: 0 / 404.4 MB, free: 4.953 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.61e-05/0.4992, allocations: 8.062 kB / 404.4 MB, free: 4.945 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/0.4992, allocations: 0 / 404.4 MB, free: 4.945 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.667e-05/0.4992, allocations: 4 kB / 404.4 MB, free: 4.941 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.4993, allocations: 0 / 404.4 MB, free: 4.941 MB / 318.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.00015/0.4994, allocations: 117.8 kB / 404.5 MB, free: 4.816 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.636e-05/0.4995, allocations: 45.58 kB / 404.6 MB, free: 4.766 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.513e-05/0.4996, allocations: 7.531 kB / 404.6 MB, free: 4.754 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.4996, allocations: 0 / 404.6 MB, free: 4.754 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.4996, allocations: 0 / 404.6 MB, free: 4.754 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.4996, allocations: 4.031 kB / 404.6 MB, free: 4.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002626/0.4999, allocations: 169.6 kB / 404.7 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.4999, allocations: 0 / 404.7 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.518e-06/0.4999, allocations: 4 kB / 404.7 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.4999, allocations: 0 / 404.7 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.4999, allocations: 0 / 404.7 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.4999, allocations: 0 / 404.7 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.4999, allocations: 0 / 404.7 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002288/0.5002, allocations: 164.2 kB / 404.9 MB, free: 4.352 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.504e-05/0.5003, allocations: 85.09 kB / 405 MB, free: 4.25 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/0.5003, allocations: 0 / 405 MB, free: 4.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.391e-05/0.5004, allocations: 4 kB / 405 MB, free: 4.246 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.469e-05/0.5004, allocations: 3.984 kB / 405 MB, free: 4.242 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-06/0.5004, allocations: 0 / 405 MB, free: 4.242 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000103/0.5005, allocations: 106.5 kB / 405.1 MB, free: 4.141 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5006, allocations: 0 / 405.1 MB, free: 4.141 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002274/0.5008, allocations: 8.031 kB / 405.1 MB, free: 4.133 MB / 318.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.000176/0.501, allocations: 99.98 kB / 405.2 MB, free: 4.027 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001885/0.5012, allocations: 23.92 kB / 405.2 MB, free: 4.004 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.5012, allocations: 0 / 405.2 MB, free: 4.004 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.741e-05/0.5012, allocations: 4 kB / 405.2 MB, free: 4 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004091/0.5016, allocations: 31.77 kB / 405.3 MB, free: 3.969 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004698/0.5021, allocations: 138.7 kB / 405.4 MB, free: 3.805 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005473/0.5027, allocations: 0.6883 MB / 406.1 MB, free: 3.09 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.304e-05/0.5027, allocations: 4 kB / 406.1 MB, free: 3.086 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.341e-05/0.5028, allocations: 7.438 kB / 406.1 MB, free: 3.078 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.5028, allocations: 3.938 kB / 406.1 MB, free: 3.074 MB / 318.1 MB Notification: Performance of Templates: time 0.003656/0.5064, allocations: 442.3 kB / 406.5 MB, free: 2.645 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches