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.001091/0.001091, allocations: 110.8 kB / 17.06 MB, free: 6.02 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.001167/0.001167, allocations: 191 kB / 18 MB, free: 5.102 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.453/1.453, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 47.92 kB / 351.3 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3892/0.3911, allocations: 49.44 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003508/0.3947, allocations: 2.004 MB / 402.7 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001866/0.3966, allocations: 1.134 MB / 403.9 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.899e-05/0.3967, allocations: 7.938 kB / 403.9 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007885/0.3975, allocations: 303.2 kB / 404.2 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004067/0.3979, allocations: 199.2 kB / 404.4 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006597/0.3986, allocations: 299.3 kB / 404.6 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000344/0.3989, allocations: 343.1 kB / 405 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.3991, allocations: 64.38 kB / 405 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001675/0.3992, allocations: 143.4 kB / 405.2 MB, free: 4.418 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001665/0.3994, allocations: 143.5 kB / 405.3 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.56e-05/0.3995, allocations: 16 kB / 405.3 MB, free: 4.262 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001763/0.3996, allocations: 83.89 kB / 405.4 MB, free: 4.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.931e-05/0.3997, allocations: 83.73 kB / 405.5 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.3999, allocations: 123.2 kB / 405.6 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004125/0.4003, allocations: 354.4 kB / 406 MB, free: 3.629 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.4003, allocations: 0 / 406 MB, free: 3.629 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4003, allocations: 0 / 406 MB, free: 3.629 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.4003, allocations: 4 kB / 406 MB, free: 3.625 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.001042/0.4014, allocations: 0.6686 MB / 406.6 MB, free: 2.895 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.4014, allocations: 12.02 kB / 406.7 MB, free: 2.883 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.621e-05/0.4015, allocations: 36.7 kB / 406.7 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003954/0.4019, allocations: 332.1 kB / 407 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.708e-05/0.4019, allocations: 11.94 kB / 407 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.367e-05/0.402, allocations: 15.98 kB / 407 MB, free: 2.453 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002676/0.4022, allocations: 144.2 kB / 407.2 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.333e-06/0.4023, allocations: 0 / 407.2 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.4023, allocations: 4 kB / 407.2 MB, free: 2.293 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.4023, allocations: 0 / 407.2 MB, free: 2.293 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001605/0.4025, allocations: 71.95 kB / 407.3 MB, free: 2.223 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006159/0.4031, allocations: 0.4885 MB / 407.7 MB, free: 1.684 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003012/0.4034, allocations: 134.7 kB / 407.9 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.4035, allocations: 52.83 kB / 407.9 MB, free: 1.488 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.4035, allocations: 3.938 kB / 407.9 MB, free: 1.484 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002074/0.4038, allocations: 119.3 kB / 408 MB, free: 1.355 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 3.016e-06/0.4038, allocations: 0 / 408 MB, free: 1.355 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004627/0.4042, allocations: 213.3 kB / 408.3 MB, free: 1.141 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/0.4043, allocations: 106.8 kB / 408.4 MB, free: 1.012 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004332/0.4047, allocations: 428.5 kB / 408.8 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.43e-05/0.4048, allocations: 33.7 kB / 408.8 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.4049, allocations: 172 kB / 409 MB, free: 384 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.593e-05/0.405, allocations: 39.73 kB / 409 MB, free: 344 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.864e-05/0.405, allocations: 41.7 kB / 409.1 MB, free: 296 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.4052, allocations: 342.8 kB / 409.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.4053, allocations: 43.94 kB / 409.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.4055, allocations: 109.9 kB / 409.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001955/0.4057, allocations: 109.7 kB / 409.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.4057, allocations: 0 / 409.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003079/0.406, allocations: 177.3 kB / 409.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.406, allocations: 4 kB / 409.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.406, allocations: 8.047 kB / 409.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.727e-06/0.406, allocations: 4 kB / 409.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.4061, allocations: 31.92 kB / 409.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.678e-06/0.4062, allocations: 0 / 409.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.4063, allocations: 23.88 kB / 409.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.4063, allocations: 4 kB / 409.9 MB, free: 15.41 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.0001476/0.4064, allocations: 167.5 kB / 410.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.674e-05/0.4065, allocations: 39.73 kB / 410.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.227e-05/0.4066, allocations: 38.94 kB / 410.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.4066, allocations: 0 / 410.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.4066, allocations: 4 kB / 410.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.4066, allocations: 0 / 410.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002764/0.4069, allocations: 301.4 kB / 410.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.4069, allocations: 0 / 410.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.826e-05/0.4069, allocations: 4 kB / 410.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.407, allocations: 4 kB / 410.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.407, allocations: 4 kB / 410.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.407, allocations: 3.984 kB / 410.4 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.407, allocations: 0 / 410.4 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003364/0.4073, allocations: 208.7 kB / 410.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.427e-05/0.4074, allocations: 108.8 kB / 410.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.162e-05/0.4075, allocations: 8 kB / 410.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.444e-05/0.4075, allocations: 11.98 kB / 410.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.241e-05/0.4076, allocations: 11.98 kB / 410.8 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.4076, allocations: 8.047 kB / 410.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003229/0.408, allocations: 315 kB / 411.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.408, allocations: 3.938 kB / 411.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002783/0.4083, allocations: 55.89 kB / 411.2 MB, free: 14.03 MB / 334.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,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * 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.0009604/0.4092, allocations: 431.3 kB / 411.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000284/0.4095, allocations: 119.8 kB / 411.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4095, allocations: 0 / 411.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000127/0.4097, allocations: 64.03 kB / 411.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004082/0.4101, allocations: 86.2 kB / 411.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006893/0.4108, allocations: 491.9 kB / 412.3 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004314/0.4112, allocations: 0.7751 MB / 413.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001124/0.4113, allocations: 38.27 kB / 413.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.2e-05/0.4114, allocations: 31.44 kB / 413.2 MB, free: 12.13 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4114, allocations: 4 kB / 413.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of Templates: time 0.008927/0.4204, allocations: 3.847 MB / 417 MB, free: 8.309 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/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