Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 107.7 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009006/0.0009007, allocations: 47.92 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08364/0.08456, allocations: 49.44 MB / 350.1 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003168/0.08776, allocations: 2.009 MB / 352.2 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001729/0.0895, allocations: 1.126 MB / 353.3 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.775e-05/0.08961, allocations: 7.938 kB / 353.3 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006897/0.09031, allocations: 299.2 kB / 353.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000382/0.0907, allocations: 203.3 kB / 353.8 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005814/0.09129, allocations: 290.2 kB / 354.1 MB, free: 388 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003067/0.09161, allocations: 339.2 kB / 354.4 MB, free: 48 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.09175, allocations: 60.36 kB / 354.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001479/0.09191, allocations: 143.4 kB / 354.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001533/0.09207, allocations: 147.4 kB / 354.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.05e-05/0.09212, allocations: 16 kB / 354.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001485/0.09228, allocations: 79.89 kB / 354.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.09e-05/0.09238, allocations: 87.75 kB / 354.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001141/0.0925, allocations: 131.2 kB / 355 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003472/0.09286, allocations: 347.1 kB / 355.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.09287, allocations: 0 / 355.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.09288, allocations: 0 / 355.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.09289, allocations: 0 / 355.4 MB, free: 15.05 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.000821/0.09371, allocations: 0.6572 MB / 356 MB, free: 14.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.09376, allocations: 8.031 kB / 356 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.413e-05/0.09381, allocations: 38.75 kB / 356.1 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.345e-05/0.09388, allocations: 40.55 kB / 356.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003813/0.09426, allocations: 335.7 kB / 356.5 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.09429, allocations: 8 kB / 356.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.084e-05/0.09431, allocations: 12 kB / 356.5 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002699/0.09459, allocations: 153.6 kB / 356.6 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.363e-06/0.09461, allocations: 0 / 356.6 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.09463, allocations: 4 kB / 356.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.09464, allocations: 4 kB / 356.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001584/0.0948, allocations: 67.95 kB / 356.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006236/0.09543, allocations: 492.3 kB / 357.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002989/0.09574, allocations: 130.8 kB / 357.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/0.09587, allocations: 52.78 kB / 357.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.0959, allocations: 11.92 kB / 357.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002141/0.09612, allocations: 115.3 kB / 357.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.934e-06/0.09614, allocations: 0 / 357.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.000464/0.09661, allocations: 209.2 kB / 357.7 MB, free: 12.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.09668, allocations: 114.7 kB / 357.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004305/0.09711, allocations: 428.5 kB / 358.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.09715, allocations: 37.64 kB / 358.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.09726, allocations: 167.9 kB / 358.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.134e-05/0.09731, allocations: 39.55 kB / 358.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.915e-05/0.09737, allocations: 45.7 kB / 358.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.0975, allocations: 342.8 kB / 358.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001068/0.09761, allocations: 47.94 kB / 358.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.09776, allocations: 97.97 kB / 359 MB, free: 11.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002001/0.09797, allocations: 113.4 kB / 359.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.09798, allocations: 0 / 359.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000296/0.09828, allocations: 181.1 kB / 359.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.0983, allocations: 4 kB / 359.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.09831, allocations: 4 kB / 359.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.208e-06/0.09832, allocations: 0 / 359.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.09843, allocations: 28.09 kB / 359.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.419e-06/0.09845, allocations: 0 / 359.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.09856, allocations: 27.81 kB / 359.3 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.093e-05/0.09857, allocations: 7.938 kB / 359.3 MB, free: 10.8 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 ($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.00014/0.09872, allocations: 167.6 kB / 359.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.588e-05/0.09877, allocations: 35.56 kB / 359.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.485e-05/0.09884, allocations: 34.94 kB / 359.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.09885, allocations: 3.984 kB / 359.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.786e-06/0.09886, allocations: 8 kB / 359.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.09887, allocations: 0 / 359.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002394/0.09911, allocations: 301.4 kB / 359.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.09912, allocations: 0 / 359.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.731e-05/0.09916, allocations: 7.938 kB / 359.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.09917, allocations: 4 kB / 359.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.09919, allocations: 4 kB / 359.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.0992, allocations: 0 / 359.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.0992, allocations: 0 / 359.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003252/0.09953, allocations: 204.6 kB / 360.1 MB, free: 9.969 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.298e-05/0.09961, allocations: 108.7 kB / 360.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.16e-05/0.09966, allocations: 8 kB / 360.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.273e-05/0.09975, allocations: 11.98 kB / 360.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.528e-05/0.0998, allocations: 11.98 kB / 360.2 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.09983, allocations: 8 kB / 360.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003329/0.1002, allocations: 315 kB / 360.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1002, allocations: 4 kB / 360.5 MB, free: 9.496 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002681/0.1004, allocations: 48 kB / 360.6 MB, free: 9.449 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 (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.001349/0.1018, allocations: 1.071 MB / 361.7 MB, free: 8.516 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002938/0.1021, allocations: 135.8 kB / 361.8 MB, free: 8.383 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1021, allocations: 0 / 361.8 MB, free: 8.383 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001229/0.1023, allocations: 59.97 kB / 361.9 MB, free: 8.324 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003885/0.1026, allocations: 72.16 kB / 361.9 MB, free: 8.262 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003008/0.1057, allocations: 2.834 MB / 364.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/0.106, allocations: 0.779 MB / 365.5 MB, free: 4.523 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001215/0.1061, allocations: 58.23 kB / 365.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.1063, allocations: 95.34 kB / 365.7 MB, free: 4.379 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.1063, allocations: 0 / 365.7 MB, free: 4.379 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1609/0.2672, allocations: 7.034 MB / 372.7 MB, free: 25.29 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.425/7.692, allocations: 11.3 kB / 372.7 MB, free: 25.28 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches