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.0008711/0.0008711, allocations: 93.7 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00119/0.00119, allocations: 195 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 227.7 MB / 246.4 MB, free: 9.715 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002231/0.0002232, allocations: 8 kB / 307.1 MB, free: 0.9414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1082, allocations: 51.53 MB / 358.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002721/0.111, allocations: 1.685 MB / 360.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002051/0.1131, allocations: 1.17 MB / 361.5 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002352/0.1133, allocations: 8 kB / 361.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009915/0.1143, allocations: 283 kB / 361.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006519/0.115, allocations: 211.4 kB / 362 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006144/0.1156, allocations: 175.7 kB / 362.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004868/0.1161, allocations: 323.1 kB / 362.5 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/0.1163, allocations: 56.89 kB / 362.5 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002428/0.1166, allocations: 123.5 kB / 362.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002251/0.1168, allocations: 135.4 kB / 362.8 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.802e-05/0.1169, allocations: 11.94 kB / 362.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001778/0.117, allocations: 59.91 kB / 362.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001056/0.1172, allocations: 71.73 kB / 362.9 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.1173, allocations: 81.52 kB / 363 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003553/0.1176, allocations: 259.7 kB / 363.2 MB, free: 8.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1176, allocations: 0 / 363.2 MB, free: 8.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1177, allocations: 4 kB / 363.2 MB, free: 8.766 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.1177, allocations: 0 / 363.2 MB, free: 8.766 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.001013/0.1187, allocations: 0.626 MB / 363.9 MB, free: 8.078 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.1187, allocations: 8.031 kB / 363.9 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.581e-05/0.1188, allocations: 35.62 kB / 363.9 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004679/0.1193, allocations: 325.3 kB / 364.2 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.219e-05/0.1193, allocations: 12 kB / 364.2 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.215e-05/0.1194, allocations: 8 kB / 364.2 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003112/0.1197, allocations: 159.2 kB / 364.4 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.1197, allocations: 0 / 364.4 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.708e-05/0.1197, allocations: 0 / 364.4 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.1197, allocations: 4 kB / 364.4 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.1199, allocations: 71.97 kB / 364.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007783/0.1207, allocations: 0.4924 MB / 365 MB, free: 6.871 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003207/0.1211, allocations: 134.7 kB / 365.1 MB, free: 6.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.1212, allocations: 52.83 kB / 365.2 MB, free: 6.676 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/0.1212, allocations: 4 kB / 365.2 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002438/0.1215, allocations: 114.2 kB / 365.3 MB, free: 6.551 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.014e-06/0.1215, allocations: 3.938 kB / 365.3 MB, free: 6.547 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005313/0.122, allocations: 209.2 kB / 365.5 MB, free: 6.336 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.106e-05/0.1221, allocations: 110.8 kB / 365.6 MB, free: 6.203 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000535/0.1226, allocations: 457.5 kB / 366 MB, free: 5.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.649e-05/0.1227, allocations: 33.7 kB / 366.1 MB, free: 5.711 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.1228, allocations: 171.9 kB / 366.2 MB, free: 5.539 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.334e-05/0.1229, allocations: 39.5 kB / 366.3 MB, free: 5.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.538e-06/0.1229, allocations: 8 kB / 366.3 MB, free: 5.492 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.123, allocations: 346.7 kB / 366.6 MB, free: 5.145 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001209/0.1232, allocations: 43.97 kB / 366.7 MB, free: 5.102 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001448/0.1233, allocations: 100.6 kB / 366.8 MB, free: 4.984 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001128/0.1234, allocations: 47.98 kB / 366.8 MB, free: 4.938 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1235, allocations: 0 / 366.8 MB, free: 4.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003139/0.1238, allocations: 175.7 kB / 367 MB, free: 4.762 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.1238, allocations: 4 kB / 367 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.1238, allocations: 7.938 kB / 367 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.1238, allocations: 7.938 kB / 367 MB, free: 4.742 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.124, allocations: 20.06 kB / 367 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.124, allocations: 4 kB / 367 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.1241, allocations: 19.92 kB / 367 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.1241, allocations: 4 kB / 367 MB, free: 4.695 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 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,$PRE.Pre1.u,Pre1.u,Pre1.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001745/0.1243, allocations: 175.5 kB / 367.2 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.487e-05/0.1243, allocations: 31.62 kB / 367.2 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.93e-05/0.1244, allocations: 34.97 kB / 367.3 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1244, allocations: 0 / 367.3 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.1245, allocations: 7.953 kB / 367.3 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.1245, allocations: 4 kB / 367.3 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002904/0.1248, allocations: 309.3 kB / 367.6 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.1248, allocations: 4 kB / 367.6 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.212e-05/0.1248, allocations: 8 kB / 367.6 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.1248, allocations: 0 / 367.6 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.603e-05/0.1248, allocations: 7.984 kB / 367.6 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1249, allocations: 4 kB / 367.6 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1249, allocations: 0 / 367.6 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000332/0.1252, allocations: 200.6 kB / 367.8 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.983e-05/0.1253, allocations: 120.6 kB / 367.9 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.356e-05/0.1254, allocations: 11.94 kB / 367.9 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.351e-05/0.1254, allocations: 4 kB / 367.9 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.919e-05/0.1255, allocations: 19.97 kB / 368 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.1255, allocations: 4 kB / 368 MB, free: 3.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003777/0.1259, allocations: 331.1 kB / 368.3 MB, free: 3.336 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1259, allocations: 4 kB / 368.3 MB, free: 3.332 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003034/0.1262, allocations: 63.89 kB / 368.4 MB, free: 3.27 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,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009469/0.1272, allocations: 428.2 kB / 368.8 MB, free: 2.984 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000277/0.1275, allocations: 111.9 kB / 368.9 MB, free: 2.875 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1275, allocations: 0 / 368.9 MB, free: 2.875 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001273/0.1276, allocations: 60.11 kB / 368.9 MB, free: 2.816 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003856/0.128, allocations: 70.45 kB / 369 MB, free: 2.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007948/0.1288, allocations: 0.5385 MB / 369.6 MB, free: 2.188 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.1292, allocations: 0.7796 MB / 370.3 MB, free: 1.383 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001337/0.1293, allocations: 42.27 kB / 370.4 MB, free: 1.336 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.527e-05/0.1294, allocations: 27.44 kB / 370.4 MB, free: 1.309 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1294, allocations: 0 / 370.4 MB, free: 1.309 MB / 302.1 MB Notification: Performance of Templates: time 0.2099/0.3393, allocations: 3.541 MB / 373.9 MB, free: 18.62 MB / 302.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