Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.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.001343/0.001343, allocations: 82.67 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001412/0.001412, allocations: 163.3 kB / 23.95 MB, free: 4.156 MB / 14.72 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 1.485/1.485, allocations: 177.1 MB / 204.3 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] 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.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.916e-06/2.916e-06, allocations: 0.6562 kB / 325 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.962e-05/3.253e-05, allocations: 2.281 kB / 325 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004757/0.00479, allocations: 1.997 MB / 327 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002994/0.007784, allocations: 1.228 MB / 328.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000312/0.008096, allocations: 3.719 kB / 328.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001216/0.009311, allocations: 310.8 kB / 328.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001014/0.01033, allocations: 264.3 kB / 328.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001228/0.01155, allocations: 225.4 kB / 329.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008867/0.01244, allocations: 366.3 kB / 329.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002669/0.01271, allocations: 40.45 kB / 329.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004536/0.01316, allocations: 197.6 kB / 329.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003954/0.01356, allocations: 134.9 kB / 329.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.536e-05/0.01363, allocations: 18.78 kB / 329.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004089/0.01404, allocations: 97.11 kB / 329.9 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000216/0.01426, allocations: 88.06 kB / 330 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001649/0.01442, allocations: 71.86 kB / 330 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007128/0.01513, allocations: 366.7 kB / 330.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.638e-06/0.01514, allocations: 3.938 kB / 330.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.01515, allocations: 3.938 kB / 330.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.652e-05/0.01516, allocations: 5.188 kB / 330.4 MB, free: 13.4 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.00139/0.01655, allocations: 0.5953 MB / 331 MB, free: 12.85 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.297e-05/0.01662, allocations: 9.531 kB / 331 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000107/0.01673, allocations: 35.64 kB / 331.1 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005242/0.01726, allocations: 284.3 kB / 331.3 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.315e-05/0.01728, allocations: 13.27 kB / 331.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.331e-05/0.01731, allocations: 11.22 kB / 331.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003176/0.01763, allocations: 123.6 kB / 331.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.01765, allocations: 7.938 kB / 331.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.288e-05/0.01767, allocations: 9.234 kB / 331.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.01768, allocations: 3.344 kB / 331.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002033/0.01788, allocations: 73.98 kB / 331.6 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008202/0.0187, allocations: 402.9 kB / 332 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003602/0.01906, allocations: 133.8 kB / 332.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.01918, allocations: 51.58 kB / 332.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.0192, allocations: 5.156 kB / 332.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002878/0.01949, allocations: 117.8 kB / 332.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.984e-06/0.01949, allocations: 0 / 332.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006569/0.02015, allocations: 224 kB / 332.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.365e-05/0.02023, allocations: 57.67 kB / 332.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007223/0.02095, allocations: 462.6 kB / 333 MB, free: 11.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.901e-05/0.02099, allocations: 32.2 kB / 333 MB, free: 11.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002348/0.02123, allocations: 172.8 kB / 333.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.993e-05/0.0213, allocations: 42.06 kB / 333.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.0214, allocations: 44.98 kB / 333.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002684/0.02167, allocations: 344.5 kB / 333.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001414/0.02181, allocations: 43.92 kB / 333.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000268/0.02208, allocations: 148.8 kB / 333.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002517/0.02233, allocations: 106.5 kB / 333.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.02234, allocations: 5.406 kB / 333.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004125/0.02275, allocations: 194.6 kB / 334.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.02277, allocations: 5.188 kB / 334.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.02278, allocations: 1.344 kB / 334.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/0.0228, allocations: 1.219 kB / 334.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.02294, allocations: 26.02 kB / 334.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.02295, allocations: 6.375 kB / 334.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001276/0.02308, allocations: 21.94 kB / 334.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.0231, allocations: 9.312 kB / 334.2 MB, free: 10.47 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.000215/0.02331, allocations: 169.1 kB / 334.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.973e-05/0.02337, allocations: 34.36 kB / 334.4 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004706/0.02384, allocations: 203.5 kB / 334.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-06/0.02385, allocations: 2.344 kB / 334.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.02385, allocations: 0 / 334.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.02386, allocations: 5.25 kB / 334.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000395/0.02426, allocations: 223.8 kB / 334.8 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.02426, allocations: 0.875 kB / 334.8 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.593e-05/0.02433, allocations: 17.3 kB / 334.8 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.02433, allocations: 0.8438 kB / 334.8 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.02435, allocations: 10.31 kB / 334.8 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.02435, allocations: 1.094 kB / 334.8 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.02435, allocations: 0 / 334.8 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004372/0.02479, allocations: 221.3 kB / 335 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.608e-05/0.02489, allocations: 32.67 kB / 335.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.743e-05/0.02493, allocations: 6.25 kB / 335.1 MB, free: 9.801 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.492e-05/0.02503, allocations: 13.48 kB / 335.1 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.778e-05/0.02512, allocations: 17.39 kB / 335.1 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.584e-05/0.02514, allocations: 13.2 kB / 335.1 MB, free: 9.773 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000452/0.02559, allocations: 336.9 kB / 335.4 MB, free: 9.582 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.02559, allocations: 4 kB / 335.5 MB, free: 9.578 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003521/0.02595, allocations: 51.66 kB / 335.5 MB, free: 9.566 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001778/0.02772, allocations: 462.3 kB / 336 MB, free: 9.355 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003796/0.0281, allocations: 116.5 kB / 336.1 MB, free: 9.309 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.02811, allocations: 1.219 kB / 336.1 MB, free: 9.309 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.02826, allocations: 70.5 kB / 336.1 MB, free: 9.277 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00051/0.02877, allocations: 77.92 kB / 336.2 MB, free: 9.234 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.0298, allocations: 0.5097 MB / 336.7 MB, free: 8.898 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001777/0.02997, allocations: 166.9 kB / 336.9 MB, free: 8.777 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001511/0.03012, allocations: 44.7 kB / 336.9 MB, free: 8.758 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.132e-05/0.03021, allocations: 34.23 kB / 337 MB, free: 8.742 MB / 302.1 MB Notification: Performance of SimCode: time 7.91e-07/0.03021, allocations: 0 / 337 MB, free: 8.742 MB / 302.1 MB Notification: Performance of Templates: time 0.009919/0.04012, allocations: 4.03 MB / 341 MB, free: 5.137 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.535386797040701]