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.001571/0.001571, allocations: 111.3 kB / 17.72 MB, free: 5.309 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.001546/0.001546, allocations: 184.1 kB / 18.65 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.404/1.404, 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.001677/0.001677, allocations: 55.92 kB / 328 MB, free: 3.836 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08817/0.08986, allocations: 46.63 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003377/0.09327, allocations: 1.993 MB / 376.6 MB, free: 3.094 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001781/0.09507, allocations: 1.049 MB / 377.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.09521, allocations: 8 kB / 377.7 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008035/0.09604, allocations: 303.2 kB / 378 MB, free: 1.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004358/0.09649, allocations: 203.2 kB / 378.2 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006339/0.09713, allocations: 263.4 kB / 378.4 MB, free: 1.273 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003931/0.09754, allocations: 343.1 kB / 378.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001485/0.0977, allocations: 60.36 kB / 378.8 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001855/0.09789, allocations: 147.4 kB / 379 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001911/0.09809, allocations: 143.4 kB / 379.1 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.862e-05/0.09814, allocations: 16 kB / 379.1 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001974/0.09834, allocations: 91.88 kB / 379.2 MB, free: 500 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001127/0.09846, allocations: 83.75 kB / 379.3 MB, free: 416 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001351/0.09861, allocations: 127.2 kB / 379.4 MB, free: 288 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1688/0.2674, allocations: 346.9 kB / 379.8 MB, free: 9.926 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.113e-05/0.2675, allocations: 3.562 kB / 379.8 MB, free: 9.926 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2675, allocations: 1.203 kB / 379.8 MB, free: 9.926 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.013e-05/0.2675, allocations: 0 / 379.8 MB, free: 9.926 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.001113/0.2686, allocations: 0.6654 MB / 380.4 MB, free: 9.375 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.2687, allocations: 12.72 kB / 380.4 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.982e-05/0.2687, allocations: 46.52 kB / 380.5 MB, free: 9.336 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.542e-05/0.2688, allocations: 36.39 kB / 380.5 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003832/0.2692, allocations: 333.1 kB / 380.8 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/0.2692, allocations: 9.344 kB / 380.9 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.656e-05/0.2693, allocations: 13.36 kB / 380.9 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002793/0.2696, allocations: 153.5 kB / 381 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.2696, allocations: 1.375 kB / 381 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.722e-05/0.2696, allocations: 5.328 kB / 381 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.2696, allocations: 1.375 kB / 381 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001626/0.2698, allocations: 68.89 kB / 381.1 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006522/0.2704, allocations: 497.1 kB / 381.6 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003151/0.2708, allocations: 132.4 kB / 381.7 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.2709, allocations: 52.98 kB / 381.8 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.512e-05/0.2709, allocations: 5.609 kB / 381.8 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002166/0.2711, allocations: 113.2 kB / 381.9 MB, free: 8.656 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.294e-06/0.2712, allocations: 0 / 381.9 MB, free: 8.656 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004914/0.2717, allocations: 221.2 kB / 382.1 MB, free: 8.602 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.2717, allocations: 108.4 kB / 382.2 MB, free: 8.477 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004722/0.2722, allocations: 430.3 kB / 382.6 MB, free: 8.359 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.048e-05/0.2722, allocations: 30.11 kB / 382.6 MB, free: 8.328 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.2723, allocations: 168 kB / 382.8 MB, free: 8.238 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.96e-05/0.2724, allocations: 43.48 kB / 382.9 MB, free: 8.215 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.359e-05/0.2724, allocations: 41.78 kB / 382.9 MB, free: 8.199 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.872e-05/0.2725, allocations: 343.5 kB / 383.2 MB, free: 7.887 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.2726, allocations: 43.66 kB / 383.3 MB, free: 7.887 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001559/0.2728, allocations: 106.6 kB / 383.4 MB, free: 7.832 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002231/0.273, allocations: 105.1 kB / 383.5 MB, free: 7.805 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.273, allocations: 5.875 kB / 383.5 MB, free: 7.805 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003214/0.2734, allocations: 178.3 kB / 383.7 MB, free: 7.754 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.2734, allocations: 5.859 kB / 383.7 MB, free: 7.754 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.2734, allocations: 5.062 kB / 383.7 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.2734, allocations: 1.125 kB / 383.7 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.2736, allocations: 24.39 kB / 383.7 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.2736, allocations: 1.844 kB / 383.7 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.753e-05/0.2737, allocations: 26 kB / 383.7 MB, free: 7.738 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.211e-05/0.2737, allocations: 4.281 kB / 383.7 MB, free: 7.738 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.000132/0.2738, allocations: 169.8 kB / 383.9 MB, free: 7.621 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.317e-05/0.2739, allocations: 31.09 kB / 383.9 MB, free: 7.605 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.556e-05/0.274, allocations: 37.7 kB / 384 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.274, allocations: 1.969 kB / 384 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.274, allocations: 4.109 kB / 384 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.274, allocations: 1.078 kB / 384 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000244/0.2742, allocations: 300.8 kB / 384.3 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.2742, allocations: 0 / 384.3 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.728e-05/0.2743, allocations: 12.59 kB / 384.3 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.2743, allocations: 2.969 kB / 384.3 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.2743, allocations: 7.078 kB / 384.3 MB, free: 7.395 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.2743, allocations: 2.219 kB / 384.3 MB, free: 7.395 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2743, allocations: 2.625 kB / 384.3 MB, free: 7.395 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003171/0.2746, allocations: 206.7 kB / 384.5 MB, free: 7.305 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.319e-05/0.2747, allocations: 112.1 kB / 384.6 MB, free: 7.191 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.291e-05/0.2748, allocations: 10.38 kB / 384.6 MB, free: 7.188 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.074e-05/0.2748, allocations: 10.05 kB / 384.6 MB, free: 7.188 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.472e-05/0.2749, allocations: 15.17 kB / 384.6 MB, free: 7.188 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-05/0.2749, allocations: 6.031 kB / 384.6 MB, free: 7.188 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003225/0.2753, allocations: 315.4 kB / 384.9 MB, free: 7.105 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2753, allocations: 4.562 kB / 385 MB, free: 7.105 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002895/0.2756, allocations: 52.8 kB / 385 MB, free: 7.102 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.001766/0.2773, allocations: 1.054 MB / 386.1 MB, free: 6.273 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003145/0.2777, allocations: 121.5 kB / 386.2 MB, free: 6.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.2777, allocations: 4.125 kB / 386.2 MB, free: 6.266 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001216/0.2778, allocations: 59.94 kB / 386.2 MB, free: 6.266 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004424/0.2783, allocations: 80.27 kB / 386.3 MB, free: 6.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003166/0.2814, allocations: 2.82 MB / 389.1 MB, free: 4.773 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002201/0.2817, allocations: 0.7732 MB / 389.9 MB, free: 4.07 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001678/0.2819, allocations: 52.8 kB / 390 MB, free: 4.055 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001371/0.282, allocations: 91.19 kB / 390 MB, free: 3.992 MB / 318.1 MB Notification: Performance of SimCode: time 5.71e-07/0.282, allocations: 0 / 390 MB, free: 3.992 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03126/0.3133, allocations: 7.183 MB / 397.2 MB, free: 2.562 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.767/9.081, allocations: 4.922 kB / 397.2 MB, free: 2.559 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