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: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001685/0.001685, allocations: 122.2 kB / 17.78 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001905/0.001906, allocations: 197.2 kB / 18.72 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.9 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.00132, allocations: 59.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2365/0.2378, allocations: 50.54 MB / 408.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003061/0.2409, allocations: 2.027 MB / 410.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002066/0.243, allocations: 1.286 MB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/0.2431, allocations: 4 kB / 412 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008011/0.244, allocations: 311.1 kB / 412.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005312/0.2445, allocations: 251.1 kB / 412.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005016/0.245, allocations: 222.7 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003934/0.2454, allocations: 367.1 kB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.2456, allocations: 64.7 kB / 413.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001751/0.2457, allocations: 151.4 kB / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001675/0.2459, allocations: 151.4 kB / 413.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/0.246, allocations: 16 kB / 413.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001725/0.2462, allocations: 87.88 kB / 413.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.88e-05/0.2463, allocations: 83.75 kB / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.2464, allocations: 135.2 kB / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004034/0.2468, allocations: 365.6 kB / 414.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2468, allocations: 4 kB / 414.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2468, allocations: 0 / 414.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.2468, allocations: 0 / 414.2 MB, free: 12.06 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.0009227/0.2478, allocations: 0.6802 MB / 414.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.2478, allocations: 12.03 kB / 414.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.644e-05/0.2479, allocations: 46.73 kB / 414.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.089e-05/0.2479, allocations: 36.7 kB / 415 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004078/0.2484, allocations: 342.7 kB / 415.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.2484, allocations: 16.3 kB / 415.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.323e-05/0.2484, allocations: 11.94 kB / 415.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002806/0.2487, allocations: 143.1 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.2487, allocations: 7.984 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.2487, allocations: 4 kB / 415.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/0.2488, allocations: 4 kB / 415.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001662/0.2489, allocations: 67.97 kB / 415.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006438/0.2496, allocations: 496.4 kB / 416.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003446/0.2499, allocations: 134.7 kB / 416.2 MB, free: 9.906 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/0.2501, allocations: 44.84 kB / 416.2 MB, free: 9.859 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.2501, allocations: 7.984 kB / 416.2 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002227/0.2503, allocations: 111.2 kB / 416.3 MB, free: 9.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 4.178e-06/0.2503, allocations: 0 / 416.3 MB, free: 9.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004907/0.2508, allocations: 221.3 kB / 416.6 MB, free: 9.508 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.269e-05/0.2509, allocations: 118.8 kB / 416.7 MB, free: 9.367 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004636/0.2514, allocations: 449.6 kB / 417.1 MB, free: 8.914 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/0.2514, allocations: 37.64 kB / 417.2 MB, free: 8.871 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.2515, allocations: 172 kB / 417.3 MB, free: 8.699 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.815e-05/0.2516, allocations: 39.69 kB / 417.4 MB, free: 8.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.132e-05/0.2516, allocations: 45.7 kB / 417.4 MB, free: 8.609 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.2518, allocations: 342.8 kB / 417.7 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.2519, allocations: 47.98 kB / 417.8 MB, free: 8.219 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001464/0.252, allocations: 116 kB / 417.9 MB, free: 8.086 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001984/0.2522, allocations: 97.94 kB / 418 MB, free: 7.984 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2522, allocations: 4 kB / 418 MB, free: 7.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003169/0.2526, allocations: 185.3 kB / 418.2 MB, free: 7.793 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.2526, allocations: 7.938 kB / 418.2 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.2526, allocations: 0 / 418.2 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.2526, allocations: 4 kB / 418.2 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.2527, allocations: 23.92 kB / 418.2 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.2528, allocations: 4 kB / 418.2 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.2529, allocations: 15.89 kB / 418.2 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.339e-05/0.2529, allocations: 12.05 kB / 418.2 MB, free: 7.727 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.0001561/0.2531, allocations: 183.5 kB / 418.4 MB, free: 7.539 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.658e-05/0.2531, allocations: 35.75 kB / 418.5 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.642e-05/0.2532, allocations: 38.95 kB / 418.5 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2532, allocations: 0 / 418.5 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.2532, allocations: 4 kB / 418.5 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.2532, allocations: 0 / 418.5 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002501/0.2535, allocations: 297.5 kB / 418.8 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.2535, allocations: 0 / 418.8 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.008e-05/0.2535, allocations: 15.98 kB / 418.8 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.2535, allocations: 3.938 kB / 418.8 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.2536, allocations: 8 kB / 418.8 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.2536, allocations: 0 / 418.8 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2536, allocations: 0 / 418.8 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003415/0.2539, allocations: 200.8 kB / 419 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.66e-05/0.254, allocations: 112.8 kB / 419.1 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.826e-05/0.2541, allocations: 15.98 kB / 419.1 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.091e-05/0.2542, allocations: 4 kB / 419.1 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.013e-05/0.2542, allocations: 11.98 kB / 419.2 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-05/0.2542, allocations: 11.98 kB / 419.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003412/0.2546, allocations: 335.1 kB / 419.5 MB, free: 6.387 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2546, allocations: 0 / 419.5 MB, free: 6.387 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002893/0.2549, allocations: 51.94 kB / 419.5 MB, free: 6.336 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.001464/0.2564, allocations: 1.069 MB / 420.6 MB, free: 5.379 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003053/0.2567, allocations: 119.9 kB / 420.7 MB, free: 5.262 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2567, allocations: 0 / 420.7 MB, free: 5.262 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.2568, allocations: 63.91 kB / 420.8 MB, free: 5.199 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004303/0.2573, allocations: 76.11 kB / 420.9 MB, free: 5.129 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003285/0.2606, allocations: 2.861 MB / 423.7 MB, free: 2.164 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003202/0.2609, allocations: 0.7831 MB / 424.5 MB, free: 1.355 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001373/0.2611, allocations: 50.25 kB / 424.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.2612, allocations: 99.39 kB / 424.7 MB, free: 1.211 MB / 334.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2612, allocations: 0 / 424.7 MB, free: 1.211 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02315/0.2844, allocations: 7.331 MB / 432 MB, free: 9.969 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.692/7.976, allocations: 16.67 kB / 432 MB, free: 9.961 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv","/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