Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001367/0.001367, allocations: 81.81 kB / 21.42 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001581/0.001581, allocations: 167.4 kB / 24.82 MB, free: 9.277 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.041/1.041, allocations: 177 MB / 205.1 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] 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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 3.938 kB / 273.3 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.363e-05/2.526e-05, allocations: 2.312 kB / 273.3 MB, free: 1.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.005829/0.005854, allocations: 1.664 MB / 275 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004182/0.006272, allocations: 183.3 kB / 275.2 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.135e-05/0.006354, allocations: 7.938 kB / 275.2 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.888e-05/0.006402, allocations: 3.938 kB / 275.2 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001195/0.006522, allocations: 3.938 kB / 275.2 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002252/0.006747, allocations: 55.75 kB / 275.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001003/0.006847, allocations: 59.84 kB / 275.3 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.963e-05/0.006947, allocations: 28.14 kB / 275.3 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.174e-05/0.007009, allocations: 35.91 kB / 275.4 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.127e-05/0.00705, allocations: 23.89 kB / 275.4 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002999/0.01005, allocations: 8 kB / 275.4 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.802e-05/0.01007, allocations: 8 kB / 275.4 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.663e-05/0.01012, allocations: 19.92 kB / 275.4 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.078e-05/0.01015, allocations: 19.92 kB / 275.4 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001447/0.0103, allocations: 59.73 kB / 275.5 MB, free: 15.03 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.0103, allocations: 0 / 275.5 MB, free: 15.03 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.0103, allocations: 0 / 275.5 MB, free: 15.03 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.878e-06/0.01031, allocations: 0 / 275.5 MB, free: 15.03 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0003963/0.0107, allocations: 412.2 kB / 275.9 MB, free: 14.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.01074, allocations: 15.98 kB / 275.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.114e-05/0.01078, allocations: 16.89 kB / 275.9 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001673/0.01095, allocations: 151.5 kB / 276.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.01097, allocations: 8.375 kB / 276.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.47e-05/0.01098, allocations: 4.375 kB / 276.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002629/0.01125, allocations: 177.1 kB / 276.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.01125, allocations: 192 / 276.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.01126, allocations: 4.375 kB / 276.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.822e-06/0.01127, allocations: 4.375 kB / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.359e-05/0.0113, allocations: 23.92 kB / 276.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002975/0.0116, allocations: 386.9 kB / 276.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.01172, allocations: 121.2 kB / 276.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.186e-05/0.01177, allocations: 59.14 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.139e-05/0.01179, allocations: 0 / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.549e-05/0.01181, allocations: 41.33 kB / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.052e-06/0.01182, allocations: 0 / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002115/0.01203, allocations: 109.4 kB / 277 MB, free: 13.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.208e-05/0.01208, allocations: 111.2 kB / 277.1 MB, free: 13.2 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.01218, allocations: 193.8 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.209e-05/0.01219, allocations: 29.7 kB / 277.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.204e-05/0.01225, allocations: 135.1 kB / 277.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.869e-06/0.01226, allocations: 3.938 kB / 277.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.149e-05/0.0123, allocations: 35.3 kB / 277.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.01241, allocations: 492.1 kB / 278 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.008e-05/0.01242, allocations: 4 kB / 278 MB, free: 12.28 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.871e-05/0.01244, allocations: 19.62 kB / 278 MB, free: 12.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.877e-05/0.01247, allocations: 31.36 kB / 278 MB, free: 12.21 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.01247, allocations: 0 / 278 MB, free: 12.21 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.233e-05/0.01253, allocations: 45.62 kB / 278.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.01255, allocations: 7.125 kB / 278.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.01255, allocations: 0 / 278.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.01257, allocations: 7.938 kB / 278.1 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.041e-05/0.01258, allocations: 0 / 278.1 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.304e-06/0.01258, allocations: 0 / 278.1 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.345e-05/0.01261, allocations: 4.062 kB / 278.1 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.01262, allocations: 4 kB / 278.1 MB, free: 12.14 MB / 266.7 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 (step.y,hold1.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 7.578e-05/0.0127, allocations: 160.6 kB / 278.2 MB, free: 11.97 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.879e-05/0.01279, allocations: 81.52 kB / 278.3 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.303e-05/0.01283, allocations: 8.781 kB / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.01283, allocations: 7.938 kB / 278.3 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.01284, allocations: 4 kB / 278.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.01284, allocations: 0 / 278.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001779/0.01302, allocations: 117.2 kB / 278.5 MB, free: 11.72 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.01302, allocations: 0 / 278.5 MB, free: 11.72 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.168e-05/0.01303, allocations: 11.98 kB / 278.5 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.01303, allocations: 0 / 278.5 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.662e-06/0.01304, allocations: 11.88 kB / 278.5 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.878e-06/0.01304, allocations: 4 kB / 278.5 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.01305, allocations: 0 / 278.5 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001303/0.01318, allocations: 318.8 kB / 278.8 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003726/0.01355, allocations: 23.88 kB / 278.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.235e-05/0.01356, allocations: 0 / 278.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.197e-05/0.01365, allocations: 8 kB / 278.8 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.422e-05/0.01368, allocations: 3.938 kB / 278.8 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-06/0.01368, allocations: 8.031 kB / 278.8 MB, free: 11.32 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.519e-05/0.01374, allocations: 147.1 kB / 279 MB, free: 11.17 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01374, allocations: 0 / 279 MB, free: 11.17 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002532/0.01399, allocations: 8 kB / 279 MB, free: 11.16 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (step.y,hold1.y,sample1.y,hold1.u,sample2.y,integerConstant.y,xor.u1,xor.u2,xor.y,xor1.u1,xor1.u2,xor1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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 9.361e-05/0.01409, allocations: 103.2 kB / 279.1 MB, free: 11.05 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.67e-05/0.01416, allocations: 31.61 kB / 279.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.01416, allocations: 0 / 279.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.661e-05/0.01418, allocations: 15.81 kB / 279.1 MB, free: 11 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003837/0.01456, allocations: 46.03 kB / 279.2 MB, free: 10.96 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003149/0.01488, allocations: 215 kB / 279.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.251e-05/0.01493, allocations: 67.34 kB / 279.5 MB, free: 10.62 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.713e-05/0.01495, allocations: 3.938 kB / 279.5 MB, free: 10.62 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.713e-05/0.01501, allocations: 78.19 kB / 279.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of SimCode: time 1.032e-06/0.01501, allocations: 0 / 279.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of Templates: time 0.002694/0.0177, allocations: 0.8224 MB / 280.4 MB, free: 9.734 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7129906280897558]