Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001293/0.001293, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001274/0.001274, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2233/0.2245, allocations: 50.54 MB / 408.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003588/0.2282, allocations: 2.482 MB / 411.2 MB, free: 15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002321/0.2305, allocations: 1.469 MB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000202/0.2307, allocations: 11.94 kB / 412.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007398/0.2315, allocations: 238.9 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005/0.232, allocations: 203 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006322/0.2327, allocations: 267.3 kB / 413.4 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004869/0.2332, allocations: 483.7 kB / 413.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000328/0.2335, allocations: 209.8 kB / 414.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002278/0.2337, allocations: 199.2 kB / 414.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000225/0.234, allocations: 215 kB / 414.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.816e-05/0.2341, allocations: 39.94 kB / 414.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002379/0.2343, allocations: 119.9 kB / 414.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000132/0.2344, allocations: 123.6 kB / 414.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001913/0.2346, allocations: 214.7 kB / 415 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006896/0.2353, allocations: 0.5669 MB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.2354, allocations: 0 / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2354, allocations: 0 / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.786e-06/0.2354, allocations: 0 / 415.5 MB, free: 10.66 MB / 334.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.001342/0.2367, allocations: 0.8781 MB / 416.4 MB, free: 9.719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.2368, allocations: 8.031 kB / 416.4 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.958e-05/0.2368, allocations: 78.66 kB / 416.5 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002325/0.2371, allocations: 64.56 kB / 416.6 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004873/0.2376, allocations: 399.3 kB / 417 MB, free: 9.133 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.502e-05/0.2377, allocations: 67.02 kB / 417 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.453e-05/0.2377, allocations: 43.98 kB / 417.1 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006169/0.2383, allocations: 424.7 kB / 417.5 MB, free: 8.562 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.2384, allocations: 0 / 417.5 MB, free: 8.562 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.313e-05/0.2384, allocations: 12 kB / 417.5 MB, free: 8.551 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.159e-05/0.2384, allocations: 12.44 kB / 417.5 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004703/0.2389, allocations: 273.5 kB / 417.8 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001847/0.2408, allocations: 1.678 MB / 419.5 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005743/0.2414, allocations: 310.6 kB / 419.8 MB, free: 6.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002201/0.2416, allocations: 126.5 kB / 419.9 MB, free: 6.047 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.776e-05/0.2417, allocations: 8 kB / 419.9 MB, free: 6.039 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004403/0.2421, allocations: 324 kB / 420.2 MB, free: 5.684 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 1.893e-06/0.2421, allocations: 0 / 420.2 MB, free: 5.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.00092/0.243, allocations: 470.2 kB / 420.7 MB, free: 5.215 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.128e-05/0.2431, allocations: 166.2 kB / 420.8 MB, free: 5.016 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005181/0.2437, allocations: 0.4935 MB / 421.3 MB, free: 4.512 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.974e-05/0.2437, allocations: 41.7 kB / 421.4 MB, free: 4.465 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001586/0.2439, allocations: 240.9 kB / 421.6 MB, free: 4.227 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.476e-05/0.244, allocations: 83.36 kB / 421.7 MB, free: 4.145 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001444/0.2441, allocations: 122.2 kB / 421.8 MB, free: 4.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.2442, allocations: 358.7 kB / 422.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002238/0.2445, allocations: 117 kB / 422.3 MB, free: 3.547 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003092/0.2448, allocations: 270.7 kB / 422.5 MB, free: 3.219 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004873/0.2453, allocations: 406.5 kB / 422.9 MB, free: 2.754 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.2453, allocations: 0 / 422.9 MB, free: 2.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007207/0.246, allocations: 462.8 kB / 423.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.873e-05/0.2461, allocations: 38.17 kB / 423.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.2461, allocations: 8 kB / 423.4 MB, free: 2.238 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.2461, allocations: 4 kB / 423.4 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001478/0.2463, allocations: 47.84 kB / 423.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.2463, allocations: 8 kB / 423.5 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002507/0.2466, allocations: 55.66 kB / 423.5 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.267e-05/0.2466, allocations: 16.16 kB / 423.6 MB, free: 2.109 MB / 334.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.0002742/0.2469, allocations: 260.8 kB / 423.8 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.43e-05/0.247, allocations: 51.61 kB / 423.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004465/0.2474, allocations: 245 kB / 424.1 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.2474, allocations: 4 kB / 424.1 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.2474, allocations: 0 / 424.1 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.2475, allocations: 11.97 kB / 424.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009564/0.2484, allocations: 0.7377 MB / 424.8 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.2484, allocations: 4 kB / 424.9 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.558e-05/0.2485, allocations: 11.94 kB / 424.9 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.2485, allocations: 0 / 424.9 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.684e-05/0.2485, allocations: 15.98 kB / 424.9 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.2485, allocations: 0 / 424.9 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.2486, allocations: 0 / 424.9 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006519/0.2492, allocations: 0.4966 MB / 425.4 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.532e-05/0.2493, allocations: 116.8 kB / 425.5 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.877e-05/0.2494, allocations: 12 kB / 425.5 MB, free: 32 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000217/0.2496, allocations: 23.97 kB / 425.5 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.2497, allocations: 43.89 kB / 425.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.08e-05/0.2498, allocations: 19.98 kB / 425.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003247/0.2501, allocations: 331.1 kB / 425.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2501, allocations: 0 / 425.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000462/0.2506, allocations: 119.7 kB / 426 MB, free: 15.5 MB / 350.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: 35 (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,changing.y,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,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 (34): * Single equations (assignments): 28 * 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.001813/0.2524, allocations: 1.38 MB / 427.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006739/0.2531, allocations: 387.6 kB / 427.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.2531, allocations: 256 / 427.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003295/0.2535, allocations: 235.2 kB / 428 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005688/0.254, allocations: 93 kB / 428.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004801/0.2588, allocations: 4.025 MB / 432.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003718/0.2592, allocations: 0.8434 MB / 433 MB, free: 8.414 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000217/0.2595, allocations: 75.55 kB / 433 MB, free: 8.336 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002144/0.2597, allocations: 159.4 kB / 433.2 MB, free: 8.18 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2597, allocations: 0 / 433.2 MB, free: 8.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02868/0.2884, allocations: 9.851 MB / 443.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.049/8.337, allocations: 14.39 kB / 443.1 MB, free: 14.41 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches