Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.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.001001/0.001001, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001601/0.001601, allocations: 165.4 kB / 25.61 MB, free: 8.582 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.931/0.931, allocations: 177.1 MB / 206 MB, free: 4.473 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.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.427e-06/3.427e-06, allocations: 0 / 274.2 MB, free: 4.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.68e-05/4.023e-05, allocations: 2.312 kB / 274.2 MB, free: 4.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003334/0.003374, allocations: 1.877 MB / 276 MB, free: 2.547 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001814/0.005188, allocations: 1.139 MB / 277.2 MB, free: 1.402 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001391/0.005327, allocations: 0 / 277.2 MB, free: 1.402 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006608/0.005988, allocations: 173 kB / 277.4 MB, free: 1.234 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004099/0.006398, allocations: 176.6 kB / 277.5 MB, free: 1.062 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004237/0.006822, allocations: 148.8 kB / 277.7 MB, free: 0.918 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003201/0.007142, allocations: 215.9 kB / 277.9 MB, free: 0.707 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.007261, allocations: 17.8 kB / 277.9 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001862/0.007448, allocations: 118 kB / 278 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001505/0.007598, allocations: 79.78 kB / 278.1 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.657e-05/0.007625, allocations: 12 kB / 278.1 MB, free: 496 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000148/0.007773, allocations: 55.95 kB / 278.2 MB, free: 440 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.882e-05/0.007852, allocations: 55.77 kB / 278.2 MB, free: 384 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.79e-05/0.00791, allocations: 39.86 kB / 278.3 MB, free: 344 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002732/0.008183, allocations: 177.3 kB / 278.4 MB, free: 168 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.008186, allocations: 0 / 278.4 MB, free: 168 kB / 250.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.008187, allocations: 0 / 278.4 MB, free: 168 kB / 250.7 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.008193, allocations: 0 / 278.4 MB, free: 168 kB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006744/0.008868, allocations: 0.5561 MB / 279 MB, free: 15.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.008913, allocations: 12.03 kB / 279 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.324e-05/0.008967, allocations: 25.45 kB / 279 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002531/0.00922, allocations: 220.3 kB / 279.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/0.009242, allocations: 8.375 kB / 279.2 MB, free: 15.28 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.266e-05/0.009255, allocations: 4.375 kB / 279.2 MB, free: 15.28 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001712/0.009426, allocations: 105 kB / 279.3 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.009439, allocations: 3.938 kB / 279.4 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.009449, allocations: 0 / 279.4 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.009455, allocations: 0 / 279.4 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.024e-05/0.009505, allocations: 27.92 kB / 279.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005335/0.01004, allocations: 0.6884 MB / 280.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001471/0.01019, allocations: 109.4 kB / 280.2 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.206e-05/0.01023, allocations: 46.98 kB / 280.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.01025, allocations: 4 kB / 280.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001448/0.01039, allocations: 123.9 kB / 280.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 2.294e-06/0.0104, allocations: 3.938 kB / 280.3 MB, free: 14.03 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002431/0.01064, allocations: 121.5 kB / 280.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.474e-05/0.01069, allocations: 114.7 kB / 280.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001859/0.01088, allocations: 296.3 kB / 280.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.0109, allocations: 25.7 kB / 280.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.012e-05/0.01099, allocations: 182.8 kB / 281.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.612e-05/0.01102, allocations: 31.73 kB / 281.1 MB, free: 13.22 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.008e-05/0.01107, allocations: 39.34 kB / 281.1 MB, free: 13.17 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.01124, allocations: 0.5118 MB / 281.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.743e-05/0.01126, allocations: 8 kB / 281.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.068e-05/0.01133, allocations: 99.78 kB / 281.8 MB, free: 12.51 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.562e-05/0.01142, allocations: 78.91 kB / 281.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.01142, allocations: 0 / 281.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001428/0.01156, allocations: 121.3 kB / 282 MB, free: 12.29 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.01158, allocations: 6.344 kB / 282 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.01159, allocations: 4 kB / 282 MB, free: 12.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.007e-06/0.0116, allocations: 0 / 282 MB, free: 12.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.786e-05/0.01166, allocations: 19.92 kB / 282 MB, free: 12.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.01167, allocations: 4 kB / 282 MB, free: 12.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.731e-05/0.01173, allocations: 16.08 kB / 282 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-06/0.01173, allocations: 4 kB / 282 MB, free: 12.24 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001065/0.01184, allocations: 172.5 kB / 282.2 MB, free: 12.06 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.181e-05/0.01187, allocations: 35.78 kB / 282.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001539/0.01202, allocations: 95.36 kB / 282.3 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.01203, allocations: 4 kB / 282.3 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.01203, allocations: 0 / 282.3 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.01204, allocations: 0 / 282.3 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001436/0.01218, allocations: 153.1 kB / 282.5 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.01218, allocations: 0 / 282.5 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.64e-05/0.01221, allocations: 16 kB / 282.5 MB, free: 11.72 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.01221, allocations: 3.938 kB / 282.5 MB, free: 11.72 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.305e-06/0.01222, allocations: 4 kB / 282.5 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.01222, allocations: 0 / 282.5 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.01223, allocations: 8.047 kB / 282.5 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001649/0.01239, allocations: 179.3 kB / 282.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.114e-05/0.01241, allocations: 15.84 kB / 282.7 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.336e-05/0.01244, allocations: 15.92 kB / 282.7 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.408e-05/0.01248, allocations: 4 kB / 282.7 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.738e-05/0.01253, allocations: 19.97 kB / 282.7 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.01254, allocations: 8 kB / 282.7 MB, free: 11.44 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003979/0.01294, allocations: 197.1 kB / 282.9 MB, free: 11.25 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01294, allocations: 0 / 282.9 MB, free: 11.25 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002014/0.01314, allocations: 43.92 kB / 283 MB, free: 11.21 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: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0009002/0.01404, allocations: 399.4 kB / 283.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001399/0.01418, allocations: 63.59 kB / 283.4 MB, free: 10.89 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.01418, allocations: 0 / 283.4 MB, free: 10.89 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.192e-05/0.01423, allocations: 43.58 kB / 283.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002538/0.01449, allocations: 63.19 kB / 283.5 MB, free: 10.78 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004299/0.01492, allocations: 326.5 kB / 283.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.291e-05/0.01497, allocations: 87.83 kB / 283.9 MB, free: 10.32 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.979e-05/0.01503, allocations: 21.62 kB / 283.9 MB, free: 10.3 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.722e-05/0.01513, allocations: 102.2 kB / 284 MB, free: 10.2 MB / 266.7 MB Notification: Performance of SimCode: time 9.22e-07/0.01513, allocations: 0 / 284 MB, free: 10.2 MB / 266.7 MB Notification: Performance of Templates: time 0.00547/0.0206, allocations: 3.231 MB / 287.3 MB, free: 7.02 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.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.713650557678193]