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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001588/0.001588, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001035/0.001035, allocations: 100.6 kB / 296.7 MB, free: 6.477 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009748/0.0009748, allocations: 59.89 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2314, allocations: 50.44 MB / 407 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00309/0.2346, allocations: 2.099 MB / 409.1 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001724/0.2364, allocations: 1.287 MB / 410.4 MB, free: 24.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.2365, allocations: 7.938 kB / 410.4 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007304/0.2372, allocations: 287.3 kB / 410.7 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003701/0.2376, allocations: 227.4 kB / 410.9 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005789/0.2382, allocations: 263.3 kB / 411.2 MB, free: 23.67 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002786/0.2385, allocations: 367.1 kB / 411.5 MB, free: 23.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001288/0.2386, allocations: 52.72 kB / 411.6 MB, free: 23.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001332/0.2388, allocations: 135.3 kB / 411.7 MB, free: 23.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000145/0.2389, allocations: 147.3 kB / 411.9 MB, free: 22.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.745e-05/0.239, allocations: 12 kB / 411.9 MB, free: 22.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001429/0.2391, allocations: 63.97 kB / 412 MB, free: 22.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.25e-05/0.2392, allocations: 79.67 kB / 412 MB, free: 22.83 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.698e-05/0.2393, allocations: 119.2 kB / 412.1 MB, free: 22.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002868/0.2396, allocations: 344.4 kB / 412.5 MB, free: 22.38 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.2396, allocations: 4 kB / 412.5 MB, free: 22.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.542e-06/0.2396, allocations: 0 / 412.5 MB, free: 22.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.219e-06/0.2396, allocations: 3.938 kB / 412.5 MB, free: 22.37 MB / 298.7 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.000838/0.2405, allocations: 0.6766 MB / 413.2 MB, free: 21.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.2405, allocations: 8.031 kB / 413.2 MB, free: 21.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.616e-05/0.2406, allocations: 36.5 kB / 413.2 MB, free: 21.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003275/0.2409, allocations: 342.3 kB / 413.5 MB, free: 21.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.2409, allocations: 12.31 kB / 413.6 MB, free: 21.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.961e-05/0.241, allocations: 16.12 kB / 413.6 MB, free: 21.19 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002386/0.2412, allocations: 149.1 kB / 413.7 MB, free: 21.03 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.2412, allocations: 4 kB / 413.7 MB, free: 21.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.2413, allocations: 3.984 kB / 413.7 MB, free: 21.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.2413, allocations: 4 kB / 413.7 MB, free: 21.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001457/0.2414, allocations: 71.95 kB / 413.8 MB, free: 20.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005339/0.242, allocations: 0.4886 MB / 414.3 MB, free: 20.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002745/0.2423, allocations: 129.6 kB / 414.4 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.531e-05/0.2424, allocations: 56.7 kB / 414.5 MB, free: 20.22 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.2424, allocations: 0 / 414.5 MB, free: 20.22 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001951/0.2426, allocations: 118.2 kB / 414.6 MB, free: 20.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 2.305e-06/0.2426, allocations: 0 / 414.6 MB, free: 20.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004087/0.243, allocations: 221.1 kB / 414.8 MB, free: 19.87 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.2431, allocations: 102.8 kB / 414.9 MB, free: 19.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003525/0.2434, allocations: 457.6 kB / 415.3 MB, free: 19.29 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.2434, allocations: 33.7 kB / 415.4 MB, free: 19.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.723e-05/0.2435, allocations: 168 kB / 415.5 MB, free: 19.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.025e-05/0.2436, allocations: 39.45 kB / 415.6 MB, free: 19.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.037e-05/0.2436, allocations: 41.7 kB / 415.6 MB, free: 19 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.985e-05/0.2437, allocations: 350.8 kB / 416 MB, free: 18.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.324e-05/0.2438, allocations: 35.98 kB / 416 MB, free: 18.61 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.2439, allocations: 112.3 kB / 416.1 MB, free: 18.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001657/0.2441, allocations: 110.2 kB / 416.2 MB, free: 18.37 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.2441, allocations: 0 / 416.2 MB, free: 18.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002446/0.2443, allocations: 173.2 kB / 416.4 MB, free: 18.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.2444, allocations: 7.938 kB / 416.4 MB, free: 18.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.2444, allocations: 8.062 kB / 416.4 MB, free: 18.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.2444, allocations: 0 / 416.4 MB, free: 18.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.2445, allocations: 27.92 kB / 416.4 MB, free: 18.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.2445, allocations: 0 / 416.4 MB, free: 18.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.146e-05/0.2446, allocations: 23.83 kB / 416.5 MB, free: 18.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.151e-05/0.2446, allocations: 4 kB / 416.5 MB, free: 18.12 MB / 298.7 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.0001145/0.2448, allocations: 184.9 kB / 416.6 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.461e-05/0.2448, allocations: 31.56 kB / 416.7 MB, free: 17.9 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.512e-05/0.2449, allocations: 38.97 kB / 416.7 MB, free: 17.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2449, allocations: 4 kB / 416.7 MB, free: 17.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.2449, allocations: 0 / 416.7 MB, free: 17.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.2449, allocations: 3.938 kB / 416.7 MB, free: 17.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001783/0.2451, allocations: 317.3 kB / 417 MB, free: 17.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2451, allocations: 0 / 417 MB, free: 17.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.377e-05/0.2451, allocations: 4 kB / 417 MB, free: 17.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.2452, allocations: 7.938 kB / 417 MB, free: 17.48 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.2452, allocations: 0 / 417 MB, free: 17.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.2452, allocations: 0 / 417 MB, free: 17.48 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2452, allocations: 0 / 417 MB, free: 17.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00051/0.2457, allocations: 0.8537 MB / 417.9 MB, free: 16.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.36e-05/0.2458, allocations: 108.7 kB / 418 MB, free: 16.44 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.753e-05/0.2458, allocations: 8 kB / 418 MB, free: 16.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.902e-05/0.2459, allocations: 7.984 kB / 418 MB, free: 16.43 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.263e-05/0.246, allocations: 15.98 kB / 418 MB, free: 16.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.246, allocations: 8 kB / 418 MB, free: 16.4 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002592/0.2462, allocations: 331.1 kB / 418.4 MB, free: 16.08 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.71e-07/0.2462, allocations: 0 / 418.4 MB, free: 16.08 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003658/0.2466, allocations: 63.83 kB / 418.4 MB, free: 16.02 MB / 298.7 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.0008329/0.2475, allocations: 427.6 kB / 418.8 MB, free: 15.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002671/0.2477, allocations: 123.8 kB / 419 MB, free: 15.61 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.2477, allocations: 0 / 419 MB, free: 15.61 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.2479, allocations: 63.91 kB / 419 MB, free: 15.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003903/0.2483, allocations: 66.34 kB / 419.1 MB, free: 15.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007429/0.249, allocations: 0.712 MB / 419.8 MB, free: 14.73 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001731/0.2492, allocations: 0.7833 MB / 420.6 MB, free: 13.93 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001147/0.2493, allocations: 50.23 kB / 420.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.661e-05/0.2494, allocations: 35.44 kB / 420.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of SimCode: time 3.3e-07/0.2494, allocations: 0 / 420.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of Templates: time 0.006092/0.2555, allocations: 3.765 MB / 424.4 MB, free: 10.1 MB / 298.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches