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.001516/0.001516, allocations: 109.2 kB / 17.06 MB, free: 5.828 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.001747/0.001747, allocations: 195.9 kB / 18 MB, free: 4.965 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.285/1.285, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009763/0.0009763, allocations: 43.92 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2369/0.2379, allocations: 49.45 MB / 400.2 MB, free: 8.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003302/0.2412, allocations: 2.01 MB / 402.2 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00186/0.2431, allocations: 1.126 MB / 403.4 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.2432, allocations: 7.938 kB / 403.4 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008168/0.2441, allocations: 303.2 kB / 403.7 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000428/0.2445, allocations: 203.3 kB / 403.9 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006662/0.2452, allocations: 292 kB / 404.1 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003636/0.2455, allocations: 351.2 kB / 404.5 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.2457, allocations: 56.36 kB / 404.5 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001683/0.2459, allocations: 143.5 kB / 404.7 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001696/0.246, allocations: 143.4 kB / 404.8 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.499e-05/0.2461, allocations: 24 kB / 404.8 MB, free: 4.344 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001768/0.2463, allocations: 83.88 kB / 404.9 MB, free: 4.262 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001036/0.2464, allocations: 91.69 kB / 405 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.2465, allocations: 123.2 kB / 405.1 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004055/0.2469, allocations: 357.6 kB / 405.5 MB, free: 3.703 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.2469, allocations: 0 / 405.5 MB, free: 3.703 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2469, allocations: 0 / 405.5 MB, free: 3.703 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.2469, allocations: 0 / 405.5 MB, free: 3.703 MB / 318.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.0009579/0.2479, allocations: 0.6608 MB / 406.1 MB, free: 2.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.248, allocations: 19.83 kB / 406.2 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.243e-05/0.248, allocations: 42.73 kB / 406.2 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.309e-05/0.2481, allocations: 36.7 kB / 406.2 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004186/0.2485, allocations: 331.9 kB / 406.6 MB, free: 2.508 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.2485, allocations: 11.94 kB / 406.6 MB, free: 2.496 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.598e-05/0.2486, allocations: 12 kB / 406.6 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002861/0.2489, allocations: 155.8 kB / 406.7 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.2489, allocations: 0 / 406.7 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.2489, allocations: 4 kB / 406.7 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.2489, allocations: 0 / 406.7 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001647/0.2491, allocations: 71.95 kB / 406.8 MB, free: 2.246 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006593/0.2497, allocations: 0.4885 MB / 407.3 MB, free: 1.707 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003094/0.2501, allocations: 138.7 kB / 407.4 MB, free: 1.562 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.2502, allocations: 48.77 kB / 407.5 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.2502, allocations: 4 kB / 407.5 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002328/0.2505, allocations: 107.3 kB / 407.6 MB, free: 1.391 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.805e-06/0.2505, allocations: 7.984 kB / 407.6 MB, free: 1.383 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.000489/0.251, allocations: 217.3 kB / 407.8 MB, free: 1.164 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.509e-05/0.251, allocations: 110.8 kB / 407.9 MB, free: 1.031 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004505/0.2515, allocations: 424.5 kB / 408.3 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.661e-05/0.2515, allocations: 33.7 kB / 408.4 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/0.2517, allocations: 168 kB / 408.5 MB, free: 412 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.673e-05/0.2517, allocations: 39.72 kB / 408.6 MB, free: 372 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.574e-05/0.2518, allocations: 45.7 kB / 408.6 MB, free: 320 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.252, allocations: 342.8 kB / 409 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.2521, allocations: 47.92 kB / 409 MB, free: 15.92 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.2523, allocations: 101.1 kB / 409.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002121/0.2525, allocations: 113.7 kB / 409.2 MB, free: 15.69 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.2525, allocations: 4 kB / 409.2 MB, free: 15.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003149/0.2528, allocations: 177.3 kB / 409.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.2528, allocations: 4 kB / 409.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.2529, allocations: 0 / 409.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.2529, allocations: 4 kB / 409.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.253, allocations: 31.86 kB / 409.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.253, allocations: 8.062 kB / 409.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.2531, allocations: 15.88 kB / 409.4 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.2532, allocations: 12 kB / 409.5 MB, free: 15.43 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.0001775/0.2533, allocations: 167.5 kB / 409.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.064e-05/0.2534, allocations: 35.75 kB / 409.7 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.19e-05/0.2535, allocations: 42.86 kB / 409.7 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.2535, allocations: 0 / 409.7 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.2535, allocations: 4 kB / 409.7 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.2535, allocations: 0 / 409.7 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002898/0.2538, allocations: 301.3 kB / 410 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2538, allocations: 0 / 410 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.995e-05/0.2539, allocations: 12 kB / 410 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.2539, allocations: 0 / 410 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.2539, allocations: 7.984 kB / 410 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.2539, allocations: 0 / 410 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2539, allocations: 0 / 410 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003372/0.2542, allocations: 208.8 kB / 410.2 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.953e-05/0.2543, allocations: 104.9 kB / 410.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.382e-05/0.2544, allocations: 8 kB / 410.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.155e-05/0.2545, allocations: 15.98 kB / 410.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.148e-05/0.2546, allocations: 7.984 kB / 410.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.123e-05/0.2546, allocations: 12 kB / 410.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000336/0.2549, allocations: 311 kB / 410.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2549, allocations: 0 / 410.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002875/0.2552, allocations: 59.88 kB / 410.7 MB, free: 14.05 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.001429/0.2567, allocations: 1.059 MB / 411.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002965/0.257, allocations: 127.9 kB / 411.9 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.257, allocations: 4.062 kB / 411.9 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.2571, allocations: 55.98 kB / 412 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004207/0.2576, allocations: 76.41 kB / 412 MB, free: 12.87 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003121/0.2607, allocations: 2.797 MB / 414.8 MB, free: 9.973 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.261, allocations: 0.7751 MB / 415.6 MB, free: 9.172 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001253/0.2612, allocations: 46.25 kB / 415.7 MB, free: 9.125 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001401/0.2613, allocations: 99.39 kB / 415.8 MB, free: 9.027 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2613, allocations: 0 / 415.8 MB, free: 9.027 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02353/0.2848, allocations: 7.186 MB / 422.9 MB, free: 1.957 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.827/8.112, allocations: 10.16 kB / 423 MB, free: 1.953 MB / 334.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