Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.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.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 113.1 kB / 17.75 MB, free: 5.309 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.001091/0.001091, allocations: 180.3 kB / 18.67 MB, free: 4.395 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.299/1.299, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001778/0.001778, allocations: 47.92 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2499, allocations: 49.43 MB / 401.4 MB, free: 8.941 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003138/0.253, allocations: 2.005 MB / 403.4 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001621/0.2547, allocations: 1.134 MB / 404.5 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.435e-05/0.2548, allocations: 4 kB / 404.5 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007632/0.2555, allocations: 303.1 kB / 404.8 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004075/0.256, allocations: 207.3 kB / 405 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006203/0.2566, allocations: 292.2 kB / 405.3 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003505/0.257, allocations: 347.1 kB / 405.7 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.2571, allocations: 52.38 kB / 405.7 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001725/0.2573, allocations: 151.4 kB / 405.9 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001738/0.2575, allocations: 147.4 kB / 406 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.843e-05/0.2575, allocations: 20 kB / 406 MB, free: 4.371 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001673/0.2577, allocations: 79.94 kB / 406.1 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.923e-05/0.2578, allocations: 87.69 kB / 406.2 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001205/0.2579, allocations: 127.2 kB / 406.3 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003579/0.2583, allocations: 344.1 kB / 406.7 MB, free: 3.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2583, allocations: 4 kB / 406.7 MB, free: 3.746 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2583, allocations: 0 / 406.7 MB, free: 3.746 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.2583, allocations: 0 / 406.7 MB, free: 3.746 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008727/0.2592, allocations: 0.6562 MB / 407.3 MB, free: 3.031 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.2592, allocations: 12.03 kB / 407.3 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.02e-05/0.2593, allocations: 32.56 kB / 407.4 MB, free: 2.988 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004188/0.2597, allocations: 335.7 kB / 407.7 MB, free: 2.617 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.878e-05/0.2598, allocations: 11.94 kB / 407.7 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.597e-05/0.2598, allocations: 12 kB / 407.7 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000287/0.2601, allocations: 159.7 kB / 407.9 MB, free: 2.426 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.2601, allocations: 0 / 407.9 MB, free: 2.426 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.2601, allocations: 0 / 407.9 MB, free: 2.426 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.2601, allocations: 4 kB / 407.9 MB, free: 2.422 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001734/0.2603, allocations: 75.95 kB / 407.9 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006567/0.261, allocations: 496.1 kB / 408.4 MB, free: 1.812 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003101/0.2613, allocations: 130.8 kB / 408.6 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.2614, allocations: 48.78 kB / 408.6 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.494e-05/0.2615, allocations: 15.92 kB / 408.6 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002135/0.2617, allocations: 99.36 kB / 408.7 MB, free: 1.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.713e-06/0.2617, allocations: 4 kB / 408.7 MB, free: 1.496 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004765/0.2622, allocations: 217.2 kB / 408.9 MB, free: 1.277 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.112e-05/0.2622, allocations: 106.8 kB / 409 MB, free: 1.148 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004468/0.2627, allocations: 436.4 kB / 409.5 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.907e-05/0.2627, allocations: 25.7 kB / 409.5 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.2629, allocations: 160 kB / 409.6 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.158e-05/0.2629, allocations: 43.45 kB / 409.7 MB, free: 492 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.915e-05/0.263, allocations: 45.7 kB / 409.7 MB, free: 440 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.2631, allocations: 346.8 kB / 410.1 MB, free: 84 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.2632, allocations: 43.94 kB / 410.1 MB, free: 40 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.2634, allocations: 106 kB / 410.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001979/0.2636, allocations: 106.2 kB / 410.3 MB, free: 15.8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.2636, allocations: 4 kB / 410.3 MB, free: 15.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003163/0.2639, allocations: 177.1 kB / 410.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.264, allocations: 8 kB / 410.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.264, allocations: 0 / 410.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.264, allocations: 0 / 410.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.2641, allocations: 28.03 kB / 410.5 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.2641, allocations: 4.062 kB / 410.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.2642, allocations: 15.92 kB / 410.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.639e-05/0.2642, allocations: 11.98 kB / 410.6 MB, free: 15.55 MB / 334.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.0001534/0.2644, allocations: 167.5 kB / 410.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.546e-05/0.2645, allocations: 31.56 kB / 410.8 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.413e-05/0.2645, allocations: 34.94 kB / 410.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.2646, allocations: 11.92 kB / 410.8 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2646, allocations: 0 / 410.8 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.438e-05/0.2646, allocations: 104.7 kB / 410.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.947e-05/0.2647, allocations: 4 kB / 410.9 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.119e-05/0.2648, allocations: 19.92 kB / 410.9 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.513e-05/0.2648, allocations: 7.984 kB / 410.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000346/0.2652, allocations: 240.7 kB / 411.2 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003883/0.2656, allocations: 361.6 kB / 411.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001155/0.2657, allocations: 55.97 kB / 411.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003144/0.266, allocations: 315 kB / 411.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of Backend: time 2.1e-07/0.2661, allocations: 0 / 411.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001405/0.2675, allocations: 496.8 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of SimCode: time 0.0009979/0.2685, allocations: 0.9453 MB / 413.3 MB, free: 12.85 MB / 334.1 MB Notification: Performance of Templates: time 0.007337/0.2758, allocations: 3.948 MB / 417.3 MB, free: 8.938 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches