Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.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.BooleanNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_BooleanNetwork1",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.001529/0.001529, allocations: 108.9 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.001715/0.001715, 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.348/1.348, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001007/0.001007, allocations: 47.56 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09194/0.09297, allocations: 49.44 MB / 350.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004581/0.09758, allocations: 2.45 MB / 352.6 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002593/0.1002, allocations: 1.329 MB / 353.9 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002212/0.1004, allocations: 11.94 kB / 353.9 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008731/0.1013, allocations: 231 kB / 354.2 MB, free: 276 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003998/0.1017, allocations: 155.1 kB / 354.3 MB, free: 120 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007106/0.1024, allocations: 306.7 kB / 354.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004355/0.1029, allocations: 479.7 kB / 355.1 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003339/0.1032, allocations: 197.8 kB / 355.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000196/0.1034, allocations: 187.3 kB / 355.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002175/0.1037, allocations: 211 kB / 355.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.177e-05/0.1037, allocations: 40 kB / 355.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002408/0.104, allocations: 123.9 kB / 355.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.1041, allocations: 119.6 kB / 356 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001972/0.1043, allocations: 218.7 kB / 356.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000581/0.1049, allocations: 0.5374 MB / 356.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1049, allocations: 0 / 356.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1049, allocations: 0 / 356.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.655e-06/0.1049, allocations: 0 / 356.7 MB, free: 13.72 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001395/0.1063, allocations: 0.8515 MB / 357.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.1064, allocations: 12.03 kB / 357.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.009e-05/0.1065, allocations: 74.72 kB / 357.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.1066, allocations: 56.28 kB / 357.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005166/0.1071, allocations: 390.8 kB / 358.1 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.407e-05/0.1072, allocations: 62.64 kB / 358.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.126e-05/0.1073, allocations: 40 kB / 358.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006149/0.1079, allocations: 436.6 kB / 358.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.1079, allocations: 0 / 358.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.388e-05/0.108, allocations: 16 kB / 358.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.55e-05/0.108, allocations: 16.44 kB / 358.6 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000452/0.1085, allocations: 265.5 kB / 358.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.1103, allocations: 1.678 MB / 360.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005737/0.1109, allocations: 303.9 kB / 360.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002147/0.1111, allocations: 126.5 kB / 361 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.613e-05/0.1112, allocations: 12 kB / 361 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004374/0.1116, allocations: 324.5 kB / 361.3 MB, free: 8.785 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.883e-06/0.1116, allocations: 0 / 361.3 MB, free: 8.785 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009189/0.1125, allocations: 486.6 kB / 361.8 MB, free: 8.297 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.865e-05/0.1126, allocations: 166.2 kB / 362 MB, free: 8.098 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004814/0.1131, allocations: 0.4894 MB / 362.4 MB, free: 7.602 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.936e-05/0.1132, allocations: 41.7 kB / 362.5 MB, free: 7.555 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001609/0.1133, allocations: 232.6 kB / 362.7 MB, free: 7.324 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.677e-05/0.1134, allocations: 75 kB / 362.8 MB, free: 7.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/0.1136, allocations: 118.2 kB / 362.9 MB, free: 7.129 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.1137, allocations: 358.8 kB / 363.3 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002274/0.114, allocations: 117.1 kB / 363.4 MB, free: 6.656 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003097/0.1143, allocations: 274.6 kB / 363.6 MB, free: 6.328 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005188/0.1148, allocations: 426.8 kB / 364.1 MB, free: 5.844 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.1148, allocations: 4 kB / 364.1 MB, free: 5.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007372/0.1156, allocations: 482.6 kB / 364.5 MB, free: 5.355 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.647e-05/0.1156, allocations: 37.73 kB / 364.6 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1156, allocations: 4 kB / 364.6 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.1156, allocations: 4 kB / 364.6 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.1158, allocations: 43.91 kB / 364.6 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.341e-05/0.1158, allocations: 11.94 kB / 364.6 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/0.116, allocations: 55.91 kB / 364.7 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.054e-05/0.1161, allocations: 16 kB / 364.7 MB, free: 5.18 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.onDelay.u,$PRE.onDelay.t_next,triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition5,$whenCondition4,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition1,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay.t_next,onDelay.delaySignal,onDelay.y,onDelay.u,$whenCondition3,$whenCondition2,sampleTriggerReset.y,sampleTriggerSet.y,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,triggeredAdd.local_set,triggeredAdd.local_reset,set1.expr[2],set1.expr[1],changing.y,changing.u,$PRE.changing.u,falling.not_u,$PRE.falling.not_u,set1.firstActiveIndex,set1.y,$PRE.set1.y,set1.u[2],set1.u[1],rising.u,$PRE.rising.u,nor1.y,or2.u[1],nand1.u[1],xor1.u[1],or1.u[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,and1.u[2],and1.u[1],$whenCondition6,showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * 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.0002538/0.1163, allocations: 256.6 kB / 364.9 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.899e-05/0.1164, allocations: 47.44 kB / 365 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004764/0.1169, allocations: 260.9 kB / 365.3 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.1169, allocations: 4 kB / 365.3 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1169, allocations: 0 / 365.3 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.1169, allocations: 3.938 kB / 365.3 MB, free: 4.598 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.1179, allocations: 0.779 MB / 366 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.118, allocations: 7.938 kB / 366 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-05/0.118, allocations: 19.92 kB / 366.1 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.118, allocations: 0 / 366.1 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.567e-05/0.1181, allocations: 12 kB / 366.1 MB, free: 3.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.1181, allocations: 3.984 kB / 366.1 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.1181, allocations: 12 kB / 366.1 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007092/0.1188, allocations: 0.5172 MB / 366.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.286e-05/0.1189, allocations: 128.4 kB / 366.7 MB, free: 3.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.69e-05/0.119, allocations: 11.98 kB / 366.7 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002082/0.1192, allocations: 27.97 kB / 366.8 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.1193, allocations: 39.95 kB / 366.8 MB, free: 2.941 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.26e-05/0.1193, allocations: 19.98 kB / 366.8 MB, free: 2.922 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003306/0.1197, allocations: 319.1 kB / 367.1 MB, free: 2.613 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1197, allocations: 0 / 367.1 MB, free: 2.613 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004555/0.1201, allocations: 119.7 kB / 367.3 MB, free: 2.496 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 37 (rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u,sampleTriggerSet.y,sampleTriggerReset.y,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],rising.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,falling.not_u,changing.u,triggeredAdd.y) * Number of discrete states: 12 (falling.not_u,rising.u,set1.y,changing.u,triggeredAdd.y,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 5 * 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.001865/0.122, allocations: 1.396 MB / 368.7 MB, free: 1.215 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006899/0.1227, allocations: 426.9 kB / 369.1 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.1227, allocations: 3.938 kB / 369.1 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003161/0.1231, allocations: 235.2 kB / 369.3 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005335/0.1236, allocations: 88.92 kB / 369.4 MB, free: 468 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1547/0.2783, allocations: 4.061 MB / 373.5 MB, free: 23.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.2787, allocations: 0.8372 MB / 374.3 MB, free: 22.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002399/0.2789, allocations: 83.05 kB / 374.4 MB, free: 22.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002013/0.2791, allocations: 165.8 kB / 374.5 MB, free: 22.91 MB / 302.1 MB Notification: Performance of SimCode: time 8.32e-07/0.2792, allocations: 0 / 374.5 MB, free: 22.91 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03325/0.3124, allocations: 9.906 MB / 384.4 MB, free: 20.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.768/8.081, allocations: 1.188 kB / 384.4 MB, free: 20.2 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_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_BooleanNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches