Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001792/0.001792, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002152/0.002152, allocations: 206.8 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.417/2.417, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002415/0.002416, allocations: 55.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4376/0.44, allocations: 50.54 MB / 409.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.006632/0.4467, allocations: 2.023 MB / 411.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004175/0.451, allocations: 1.278 MB / 413.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003143/0.4513, allocations: 7.938 kB / 413.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00154/0.4529, allocations: 307.1 kB / 413.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00125/0.4542, allocations: 243.1 kB / 413.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001187/0.4554, allocations: 234.8 kB / 414 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008443/0.4563, allocations: 367.1 kB / 414.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002977/0.4566, allocations: 60.7 kB / 414.4 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004096/0.457, allocations: 151.4 kB / 414.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004075/0.4574, allocations: 143.4 kB / 414.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.267e-05/0.4576, allocations: 20 kB / 414.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004038/0.458, allocations: 87.88 kB / 414.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001947/0.4582, allocations: 83.75 kB / 414.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002534/0.4585, allocations: 139.1 kB / 415 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008588/0.4593, allocations: 359.9 kB / 415.4 MB, free: 12.13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.448e-06/0.4594, allocations: 4 kB / 415.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.4594, allocations: 3.938 kB / 415.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.65e-05/0.4594, allocations: 4 kB / 415.4 MB, free: 12.12 MB / 334.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.001899/0.4613, allocations: 0.661 MB / 416 MB, free: 11.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.932e-05/0.4614, allocations: 8.031 kB / 416.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000172/0.4616, allocations: 40.55 kB / 416.1 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008554/0.4625, allocations: 338.3 kB / 416.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.4625, allocations: 12.38 kB / 416.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.269e-05/0.4626, allocations: 20.12 kB / 416.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005662/0.4632, allocations: 144 kB / 416.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.4632, allocations: 0 / 416.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.583e-05/0.4633, allocations: 8 kB / 416.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.884e-06/0.4633, allocations: 0 / 416.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003339/0.4636, allocations: 71.89 kB / 416.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001313/0.465, allocations: 0.4924 MB / 417.2 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006344/0.4656, allocations: 130.8 kB / 417.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000218/0.4659, allocations: 44.84 kB / 417.3 MB, free: 9.988 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.324e-05/0.4659, allocations: 8 kB / 417.3 MB, free: 9.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000421/0.4664, allocations: 111.3 kB / 417.5 MB, free: 9.859 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 3.046e-06/0.4664, allocations: 0 / 417.5 MB, free: 9.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008988/0.4673, allocations: 217.1 kB / 417.7 MB, free: 9.641 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.958e-05/0.4674, allocations: 106.8 kB / 417.8 MB, free: 9.512 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009898/0.4684, allocations: 453.6 kB / 418.2 MB, free: 9.055 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.607e-05/0.4685, allocations: 41.69 kB / 418.3 MB, free: 9.008 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002196/0.4687, allocations: 168 kB / 418.4 MB, free: 8.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.387e-05/0.4688, allocations: 43.44 kB / 418.5 MB, free: 8.797 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001362/0.469, allocations: 45.7 kB / 418.5 MB, free: 8.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002073/0.4692, allocations: 342.8 kB / 418.8 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002223/0.4695, allocations: 51.91 kB / 418.9 MB, free: 8.352 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003091/0.4698, allocations: 112.3 kB / 419 MB, free: 8.223 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004145/0.4702, allocations: 106 kB / 419.1 MB, free: 8.113 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.4702, allocations: 0 / 419.1 MB, free: 8.113 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006479/0.4709, allocations: 173.3 kB / 419.3 MB, free: 7.938 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.471, allocations: 19.88 kB / 419.3 MB, free: 7.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/0.471, allocations: 0 / 419.3 MB, free: 7.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.594e-05/0.471, allocations: 0 / 419.3 MB, free: 7.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.4712, allocations: 23.98 kB / 419.3 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.4713, allocations: 0 / 419.3 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002158/0.4715, allocations: 19.84 kB / 419.3 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/0.4715, allocations: 4 kB / 419.3 MB, free: 7.871 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.0002777/0.4718, allocations: 183.4 kB / 419.5 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.4719, allocations: 35.56 kB / 419.6 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001347/0.4721, allocations: 34.97 kB / 419.6 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.4721, allocations: 0 / 419.6 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.4721, allocations: 0 / 419.6 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.4722, allocations: 12.02 kB / 419.6 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004769/0.4726, allocations: 305.4 kB / 419.9 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.4727, allocations: 0 / 419.9 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.348e-05/0.4727, allocations: 8 kB / 419.9 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.979e-06/0.4728, allocations: 3.938 kB / 419.9 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.444e-05/0.4728, allocations: 3.984 kB / 419.9 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.4728, allocations: 8 kB / 419.9 MB, free: 7.234 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.4728, allocations: 0 / 419.9 MB, free: 7.234 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006597/0.4735, allocations: 204.5 kB / 420.1 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001284/0.4737, allocations: 104.8 kB / 420.2 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.27e-05/0.4737, allocations: 11.94 kB / 420.2 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001554/0.4739, allocations: 7.984 kB / 420.2 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.595e-05/0.474, allocations: 11.98 kB / 420.3 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.519e-05/0.4741, allocations: 15.98 kB / 420.3 MB, free: 6.848 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006305/0.4747, allocations: 327.1 kB / 420.6 MB, free: 6.531 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4747, allocations: 0 / 420.6 MB, free: 6.531 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005931/0.4753, allocations: 59.91 kB / 420.6 MB, free: 6.473 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.001895/0.4773, allocations: 429.9 kB / 421.1 MB, free: 6.188 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006052/0.4779, allocations: 127.8 kB / 421.2 MB, free: 6.062 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.4779, allocations: 3.938 kB / 421.2 MB, free: 6.059 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002415/0.4782, allocations: 51.97 kB / 421.2 MB, free: 6.008 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007784/0.479, allocations: 82.81 kB / 421.3 MB, free: 5.938 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.4805, allocations: 0.5255 MB / 421.9 MB, free: 5.375 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005406/0.481, allocations: 0.7793 MB / 422.6 MB, free: 4.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/0.4812, allocations: 31.44 kB / 422.7 MB, free: 4.539 MB / 334.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4812, allocations: 0 / 422.7 MB, free: 4.539 MB / 334.1 MB Notification: Performance of Templates: time 0.01309/0.4943, allocations: 4.351 MB / 427 MB, free: 200 kB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches