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.001259/0.001259, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001279/0.001279, allocations: 204.7 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 67.89 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3429/0.3441, allocations: 50.55 MB / 409.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003659/0.3478, allocations: 2.023 MB / 411.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002277/0.3501, allocations: 1.275 MB / 412.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.3503, allocations: 3.938 kB / 412.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008705/0.3512, allocations: 303.1 kB / 412.8 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006582/0.3518, allocations: 258.7 kB / 413.1 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006716/0.3525, allocations: 219.5 kB / 413.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006788/0.3532, allocations: 367.1 kB / 413.7 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001726/0.3534, allocations: 60.7 kB / 413.7 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002753/0.3537, allocations: 151.4 kB / 413.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002296/0.3539, allocations: 147.4 kB / 414 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.495e-05/0.3539, allocations: 20 kB / 414 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002196/0.3542, allocations: 83.94 kB / 414.1 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.3543, allocations: 87.69 kB / 414.2 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001546/0.3545, allocations: 135.1 kB / 414.3 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006419/0.3551, allocations: 363.9 kB / 414.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3551, allocations: 4 kB / 414.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.3551, allocations: 0 / 414.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.3552, allocations: 0 / 414.7 MB, free: 12.11 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.00118/0.3563, allocations: 0.6727 MB / 415.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.3564, allocations: 8.031 kB / 415.4 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.196e-05/0.3565, allocations: 32.56 kB / 415.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004682/0.357, allocations: 342.3 kB / 415.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.357, allocations: 8.375 kB / 415.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.737e-05/0.357, allocations: 24.06 kB / 415.8 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003144/0.3573, allocations: 148 kB / 415.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.3574, allocations: 3.938 kB / 415.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.375e-05/0.3574, allocations: 8 kB / 415.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.852e-06/0.3574, allocations: 0 / 415.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001867/0.3576, allocations: 67.95 kB / 416 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007422/0.3584, allocations: 0.4924 MB / 416.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003361/0.3587, allocations: 126.8 kB / 416.6 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.3588, allocations: 48.83 kB / 416.7 MB, free: 9.973 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.622e-05/0.3589, allocations: 11.94 kB / 416.7 MB, free: 9.961 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002465/0.3591, allocations: 107.3 kB / 416.8 MB, free: 9.844 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.643e-06/0.3591, allocations: 0 / 416.8 MB, free: 9.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000579/0.3597, allocations: 220.5 kB / 417 MB, free: 9.625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.956e-05/0.3598, allocations: 106.8 kB / 417.1 MB, free: 9.496 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005615/0.3604, allocations: 457.5 kB / 417.5 MB, free: 9.035 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.698e-05/0.3604, allocations: 37.7 kB / 417.6 MB, free: 8.992 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.3606, allocations: 171.9 kB / 417.7 MB, free: 8.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.875e-05/0.3606, allocations: 43.44 kB / 417.8 MB, free: 8.777 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.74e-05/0.3607, allocations: 45.7 kB / 417.8 MB, free: 8.727 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.3609, allocations: 342.8 kB / 418.2 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.361, allocations: 43.98 kB / 418.2 MB, free: 8.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000155/0.3612, allocations: 112 kB / 418.3 MB, free: 8.211 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001988/0.3614, allocations: 102.4 kB / 418.4 MB, free: 8.102 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.3614, allocations: 0 / 418.4 MB, free: 8.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003309/0.3617, allocations: 177.3 kB / 418.6 MB, free: 7.922 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.3617, allocations: 11.94 kB / 418.6 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.3617, allocations: 0 / 418.6 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.3618, allocations: 0 / 418.6 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.3619, allocations: 23.98 kB / 418.6 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.3619, allocations: 0 / 418.6 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.362, allocations: 23.83 kB / 418.7 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.418e-05/0.362, allocations: 4 kB / 418.7 MB, free: 7.859 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.0001884/0.3622, allocations: 187.4 kB / 418.8 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.815e-05/0.3623, allocations: 35.56 kB / 418.9 MB, free: 7.633 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.798e-05/0.3624, allocations: 34.97 kB / 418.9 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.3624, allocations: 0 / 418.9 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.3624, allocations: 0 / 418.9 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.3624, allocations: 0 / 418.9 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002942/0.3627, allocations: 309.4 kB / 419.2 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.3627, allocations: 0 / 419.2 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.006e-05/0.3628, allocations: 15.88 kB / 419.2 MB, free: 7.234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.3628, allocations: 3.938 kB / 419.2 MB, free: 7.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.3628, allocations: 0 / 419.2 MB, free: 7.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.3628, allocations: 8 kB / 419.2 MB, free: 7.223 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3628, allocations: 0 / 419.2 MB, free: 7.223 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000347/0.3632, allocations: 203.7 kB / 419.4 MB, free: 7.008 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.691e-05/0.3633, allocations: 108.8 kB / 419.5 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.968e-05/0.3633, allocations: 7.938 kB / 419.6 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.154e-05/0.3634, allocations: 11.98 kB / 419.6 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.421e-05/0.3635, allocations: 11.98 kB / 419.6 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.822e-05/0.3635, allocations: 8 kB / 419.6 MB, free: 6.844 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003821/0.3639, allocations: 331.1 kB / 419.9 MB, free: 6.523 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3639, allocations: 3.938 kB / 419.9 MB, free: 6.52 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000291/0.3642, allocations: 63.89 kB / 420 MB, free: 6.457 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.0009537/0.3651, allocations: 420.6 kB / 420.4 MB, free: 6.176 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003006/0.3655, allocations: 127.8 kB / 420.5 MB, free: 6.051 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3655, allocations: 4 kB / 420.5 MB, free: 6.047 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.3656, allocations: 58.31 kB / 420.6 MB, free: 5.992 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004096/0.366, allocations: 85.61 kB / 420.7 MB, free: 5.914 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007913/0.3668, allocations: 496.5 kB / 421.1 MB, free: 5.398 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003641/0.3672, allocations: 0.7793 MB / 421.9 MB, free: 4.594 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001155/0.3673, allocations: 42.27 kB / 422 MB, free: 4.555 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.622e-05/0.3674, allocations: 35.44 kB / 422 MB, free: 4.52 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3674, allocations: 0 / 422 MB, free: 4.52 MB / 334.1 MB Notification: Performance of Templates: time 0.008229/0.3756, allocations: 3.902 MB / 425.9 MB, free: 0.6367 MB / 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/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_trunk_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches