Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009037/0.0009037, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009896/0.0009896, allocations: 174.3 kB / 24.92 MB, free: 8.77 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9852/0.9852, allocations: 177.1 MB / 205.3 MB, free: 5.098 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 3.938 kB / 273.4 MB, free: 1.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.393e-05/1.51e-05, allocations: 5.969 kB / 273.4 MB, free: 1.188 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.001881/0.001896, allocations: 1.669 MB / 275.1 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003116/0.002208, allocations: 171.2 kB / 275.3 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.212e-05/0.00227, allocations: 3.938 kB / 275.3 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.33e-05/0.002313, allocations: 11.92 kB / 275.3 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001066/0.00242, allocations: 15.88 kB / 275.3 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001669/0.002586, allocations: 51.75 kB / 275.4 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 8.944e-05/0.002676, allocations: 63.83 kB / 275.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.724e-05/0.002753, allocations: 28.14 kB / 275.5 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.898e-05/0.002802, allocations: 39.89 kB / 275.5 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.131e-05/0.002833, allocations: 23.91 kB / 275.5 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.206e-05/0.002855, allocations: 4 kB / 275.5 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.082e-05/0.002866, allocations: 8 kB / 275.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.687e-05/0.002903, allocations: 19.91 kB / 275.5 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.112e-05/0.002924, allocations: 23.94 kB / 275.6 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 8.531e-05/0.00301, allocations: 47.81 kB / 275.6 MB, free: 15 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.003011, allocations: 0 / 275.6 MB, free: 15 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.003012, allocations: 0 / 275.6 MB, free: 15 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.494e-06/0.003014, allocations: 0 / 275.6 MB, free: 15 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.0002609/0.003275, allocations: 300.4 kB / 275.9 MB, free: 14.68 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.788e-05/0.003303, allocations: 8.031 kB / 275.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.634e-05/0.003329, allocations: 12.92 kB / 275.9 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001212/0.00345, allocations: 137.7 kB / 276.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.003465, allocations: 4.375 kB / 276.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/0.003475, allocations: 12.38 kB / 276.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001778/0.003653, allocations: 155 kB / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.811e-06/0.003659, allocations: 4.125 kB / 276.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.592e-06/0.003665, allocations: 8.375 kB / 276.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.003669, allocations: 384 / 276.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.501e-05/0.003694, allocations: 19.92 kB / 276.3 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001895/0.003884, allocations: 257.2 kB / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.526e-05/0.003969, allocations: 87.83 kB / 276.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.496e-05/0.004004, allocations: 46.67 kB / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.457e-05/0.004019, allocations: 4 kB / 276.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.004039, allocations: 42.5 kB / 276.7 MB, free: 13.78 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.022e-06/0.00404, allocations: 0 / 276.7 MB, free: 13.78 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001319/0.004172, allocations: 93.47 kB / 276.8 MB, free: 13.68 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.495e-05/0.004217, allocations: 106.8 kB / 276.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.801e-05/0.004285, allocations: 141 kB / 277 MB, free: 13.41 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.053e-05/0.004295, allocations: 33.7 kB / 277.1 MB, free: 13.37 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.766e-05/0.004323, allocations: 80.42 kB / 277.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.278e-06/0.004332, allocations: 11.94 kB / 277.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.438e-05/0.004357, allocations: 21.7 kB / 277.2 MB, free: 13.24 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.656e-05/0.004423, allocations: 326.8 kB / 277.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.9e-06/0.004428, allocations: 0 / 277.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.232e-05/0.00444, allocations: 13.72 kB / 277.5 MB, free: 12.89 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.043e-05/0.004461, allocations: 17.66 kB / 277.5 MB, free: 12.87 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.004463, allocations: 4.062 kB / 277.5 MB, free: 12.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 3.762e-05/0.0045, allocations: 37.69 kB / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.526e-06/0.004509, allocations: 4 kB / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.004513, allocations: 7.938 kB / 277.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.004527, allocations: 3.938 kB / 277.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.965e-06/0.004535, allocations: 0 / 277.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.144e-06/0.004537, allocations: 0 / 277.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.034e-05/0.004557, allocations: 4 kB / 277.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.037e-06/0.004561, allocations: 0 / 277.6 MB, free: 12.8 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 5.248e-05/0.004614, allocations: 120.7 kB / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.446e-05/0.004668, allocations: 57.62 kB / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.52e-05/0.004693, allocations: 20.77 kB / 277.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.004699, allocations: 11.94 kB / 277.8 MB, free: 12.58 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-06/0.0047, allocations: 0 / 277.8 MB, free: 12.58 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.004703, allocations: 0 / 277.8 MB, free: 12.58 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001134/0.004817, allocations: 81.88 kB / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.004817, allocations: 0 / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-06/0.004823, allocations: 0 / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.004824, allocations: 4 kB / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.238e-06/0.004828, allocations: 0 / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.004831, allocations: 11.98 kB / 277.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.004832, allocations: 0 / 277.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.648e-05/0.004908, allocations: 224 kB / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.73e-05/0.004935, allocations: 19.84 kB / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.767e-06/0.004944, allocations: 0 / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.308e-05/0.004997, allocations: 8 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.883e-05/0.005016, allocations: 7.922 kB / 278.1 MB, free: 12.19 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.849e-06/0.005021, allocations: 4 kB / 278.1 MB, free: 12.19 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.762e-05/0.005039, allocations: 23.95 kB / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005039, allocations: 4 kB / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001415/0.00518, allocations: 12.03 kB / 278.2 MB, free: 12.15 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 6.692e-05/0.005247, allocations: 88.23 kB / 278.3 MB, free: 12.06 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 5.713e-05/0.005304, allocations: 36.78 kB / 278.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.005306, allocations: 0 / 278.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.059e-05/0.005316, allocations: 12.8 kB / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002136/0.00553, allocations: 42.98 kB / 278.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002352/0.005765, allocations: 202.8 kB / 278.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.23e-05/0.005808, allocations: 75.23 kB / 278.6 MB, free: 11.64 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.288e-05/0.00582, allocations: 0 / 278.6 MB, free: 11.64 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.554e-05/0.005866, allocations: 59.38 kB / 278.7 MB, free: 11.58 MB / 266.7 MB Notification: Performance of SimCode: time 4.41e-07/0.005866, allocations: 0 / 278.7 MB, free: 11.58 MB / 266.7 MB Notification: Performance of Templates: time 0.002079/0.007945, allocations: 0.7909 MB / 279.5 MB, free: 10.8 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.6378865279257298]