Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_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.001042/0.001042, allocations: 106.5 kB / 17.73 MB, free: 5.32 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.0009939/0.0009939, allocations: 187 kB / 18.66 MB, free: 4.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.401/1.401, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 56.2 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09094/0.09231, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003888/0.09623, allocations: 1.985 MB / 376.6 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001954/0.09821, allocations: 1.061 MB / 377.7 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002162/0.09845, allocations: 0 / 377.7 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000984/0.09951, allocations: 311.2 kB / 378 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005422/0.1001, allocations: 199.3 kB / 378.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000774/0.1009, allocations: 271.4 kB / 378.4 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005/0.1014, allocations: 335.2 kB / 378.8 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001747/0.1016, allocations: 64.36 kB / 378.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002519/0.1018, allocations: 143.4 kB / 379 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002239/0.102, allocations: 147.4 kB / 379.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.441e-05/0.1021, allocations: 16 kB / 379.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002283/0.1023, allocations: 87.88 kB / 379.2 MB, free: 480 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001257/0.1025, allocations: 83.73 kB / 379.3 MB, free: 396 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001697/0.1027, allocations: 127.2 kB / 379.4 MB, free: 268 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1846/0.2872, allocations: 345.2 kB / 379.8 MB, free: 9.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.949e-06/0.2873, allocations: 2.094 kB / 379.8 MB, free: 9.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.2873, allocations: 0 / 379.8 MB, free: 9.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.731e-05/0.2873, allocations: 1.312 kB / 379.8 MB, free: 9.93 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.001228/0.2886, allocations: 0.6684 MB / 380.4 MB, free: 9.379 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.2886, allocations: 9.625 kB / 380.4 MB, free: 9.379 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.845e-05/0.2887, allocations: 46.12 kB / 380.5 MB, free: 9.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.2888, allocations: 38.16 kB / 380.5 MB, free: 9.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004566/0.2893, allocations: 331.1 kB / 380.9 MB, free: 9.082 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.615e-05/0.2893, allocations: 10.33 kB / 380.9 MB, free: 9.082 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.278e-05/0.2894, allocations: 13.88 kB / 380.9 MB, free: 9.082 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003271/0.2897, allocations: 151.4 kB / 381 MB, free: 9.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.2897, allocations: 0 / 381 MB, free: 9.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.992e-05/0.2897, allocations: 10.34 kB / 381 MB, free: 9.02 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.2898, allocations: 2.75 kB / 381 MB, free: 9.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001784/0.2899, allocations: 68.25 kB / 381.1 MB, free: 9.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007348/0.2907, allocations: 0.4904 MB / 381.6 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003363/0.291, allocations: 136.3 kB / 381.7 MB, free: 8.715 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.2912, allocations: 51.06 kB / 381.8 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.035e-05/0.2912, allocations: 2.75 kB / 381.8 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002449/0.2914, allocations: 111.4 kB / 381.9 MB, free: 8.66 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.094e-06/0.2915, allocations: 1.344 kB / 381.9 MB, free: 8.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005317/0.292, allocations: 215.5 kB / 382.1 MB, free: 8.605 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/0.2921, allocations: 107.8 kB / 382.2 MB, free: 8.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006079/0.2927, allocations: 431.8 kB / 382.6 MB, free: 8.363 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.361e-05/0.2927, allocations: 34.83 kB / 382.7 MB, free: 8.332 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.2928, allocations: 167.5 kB / 382.8 MB, free: 8.242 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.465e-05/0.2929, allocations: 40.45 kB / 382.9 MB, free: 8.219 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.357e-05/0.293, allocations: 41.88 kB / 382.9 MB, free: 8.203 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.995e-05/0.293, allocations: 342.5 kB / 383.2 MB, free: 7.891 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.2932, allocations: 48.08 kB / 383.3 MB, free: 7.891 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/0.2934, allocations: 102.3 kB / 383.4 MB, free: 7.836 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002367/0.2936, allocations: 113.8 kB / 383.5 MB, free: 7.809 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.2936, allocations: 0.5938 kB / 383.5 MB, free: 7.809 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003805/0.294, allocations: 175.3 kB / 383.7 MB, free: 7.758 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.294, allocations: 5.688 kB / 383.7 MB, free: 7.758 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.2941, allocations: 5 kB / 383.7 MB, free: 7.754 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.2941, allocations: 2.281 kB / 383.7 MB, free: 7.754 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.2942, allocations: 24.3 kB / 383.7 MB, free: 7.754 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.2942, allocations: 3.484 kB / 383.7 MB, free: 7.754 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001295/0.2944, allocations: 20.98 kB / 383.7 MB, free: 7.746 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.574e-05/0.2944, allocations: 5.969 kB / 383.7 MB, free: 7.746 MB / 318.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.000181/0.2946, allocations: 172.6 kB / 383.9 MB, free: 7.625 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.293e-05/0.2946, allocations: 31.61 kB / 383.9 MB, free: 7.609 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.621e-05/0.2947, allocations: 37.75 kB / 384 MB, free: 7.598 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.2947, allocations: 5.469 kB / 384 MB, free: 7.598 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.2948, allocations: 0 / 384 MB, free: 7.598 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.2948, allocations: 3.797 kB / 384 MB, free: 7.598 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002789/0.2951, allocations: 301.5 kB / 384.3 MB, free: 7.406 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.2951, allocations: 1.031 kB / 384.3 MB, free: 7.406 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.27e-05/0.2951, allocations: 9.344 kB / 384.3 MB, free: 7.406 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.2951, allocations: 9.594 kB / 384.3 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.2951, allocations: 7.109 kB / 384.3 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.2951, allocations: 1.375 kB / 384.3 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.2952, allocations: 0.9844 kB / 384.3 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003313/0.2955, allocations: 199.4 kB / 384.5 MB, free: 7.316 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.995e-05/0.2956, allocations: 107.9 kB / 384.6 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.995e-05/0.2956, allocations: 10.25 kB / 384.6 MB, free: 7.199 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.908e-05/0.2957, allocations: 14.83 kB / 384.6 MB, free: 7.195 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.714e-05/0.2958, allocations: 13.78 kB / 384.6 MB, free: 7.195 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.141e-05/0.2958, allocations: 6.766 kB / 384.6 MB, free: 7.195 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000362/0.2962, allocations: 314.4 kB / 385 MB, free: 7.113 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2962, allocations: 0.75 kB / 385 MB, free: 7.113 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003131/0.2965, allocations: 50.97 kB / 385 MB, free: 7.109 MB / 318.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.001391/0.2979, allocations: 1.067 MB / 386.1 MB, free: 6.277 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003258/0.2983, allocations: 117.4 kB / 386.2 MB, free: 6.273 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2983, allocations: 0 / 386.2 MB, free: 6.273 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001443/0.2984, allocations: 65 kB / 386.2 MB, free: 6.273 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000476/0.2989, allocations: 83.73 kB / 386.3 MB, free: 6.254 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003514/0.3024, allocations: 2.814 MB / 389.1 MB, free: 4.77 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002602/0.3027, allocations: 0.7754 MB / 389.9 MB, free: 4.062 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001945/0.3029, allocations: 50.94 kB / 390 MB, free: 4.051 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001536/0.3031, allocations: 94.31 kB / 390.1 MB, free: 3.984 MB / 318.1 MB Notification: Performance of SimCode: time 1.903e-06/0.3031, allocations: 0 / 390.1 MB, free: 3.984 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03/0.3331, allocations: 7.183 MB / 397.2 MB, free: 2.551 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.255/8.588, allocations: 9.172 kB / 397.3 MB, free: 2.543 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches