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.001591/0.001591, allocations: 104.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.001929/0.001929, 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.233/1.233, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000917/0.0009171, allocations: 50.95 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07449/0.07543, allocations: 49.45 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003521/0.07898, allocations: 2.445 MB / 352.6 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001837/0.08083, allocations: 1.325 MB / 353.9 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.08098, allocations: 11.94 kB / 353.9 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005914/0.08158, allocations: 240.5 kB / 354.2 MB, free: 288 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000319/0.08192, allocations: 151.2 kB / 354.3 MB, free: 136 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005738/0.0825, allocations: 310.8 kB / 354.6 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003939/0.08291, allocations: 471.7 kB / 355.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002748/0.08319, allocations: 201.8 kB / 355.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001719/0.08337, allocations: 195.2 kB / 355.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001929/0.08357, allocations: 211.1 kB / 355.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.426e-05/0.08363, allocations: 36 kB / 355.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001928/0.08383, allocations: 127.8 kB / 355.8 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.08395, allocations: 123.6 kB / 356 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001648/0.08412, allocations: 214.7 kB / 356.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004695/0.0846, allocations: 0.5374 MB / 356.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.08461, allocations: 0 / 356.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.08462, allocations: 0 / 356.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.08463, allocations: 0 / 356.7 MB, free: 13.73 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.001108/0.08574, allocations: 0.8501 MB / 357.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.08579, allocations: 12.03 kB / 357.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.498e-05/0.08586, allocations: 70.72 kB / 357.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.614e-05/0.08595, allocations: 56.28 kB / 357.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004132/0.08637, allocations: 394.7 kB / 358.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.008e-05/0.08644, allocations: 66.64 kB / 358.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.851e-05/0.08649, allocations: 40 kB / 358.2 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000562/0.08706, allocations: 432.7 kB / 358.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.08708, allocations: 0 / 358.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.218e-05/0.08712, allocations: 19.98 kB / 358.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.158e-05/0.08714, allocations: 16.44 kB / 358.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000427/0.08758, allocations: 265.5 kB / 358.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001585/0.08917, allocations: 1.678 MB / 360.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005005/0.08968, allocations: 299.9 kB / 360.9 MB, free: 9.297 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002104/0.0899, allocations: 126.5 kB / 361 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.84e-05/0.08995, allocations: 8 kB / 361 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003842/0.09034, allocations: 328.5 kB / 361.3 MB, free: 8.797 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.826e-06/0.09036, allocations: 3.984 kB / 361.3 MB, free: 8.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0008092/0.09117, allocations: 489.6 kB / 361.8 MB, free: 8.305 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.763e-05/0.09125, allocations: 162.2 kB / 362 MB, free: 8.109 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00043/0.09169, allocations: 0.4933 MB / 362.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.547e-05/0.09173, allocations: 37.7 kB / 362.5 MB, free: 7.566 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.09187, allocations: 232.5 kB / 362.7 MB, free: 7.336 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.509e-05/0.09194, allocations: 79 kB / 362.8 MB, free: 7.258 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.09207, allocations: 118.2 kB / 362.9 MB, free: 7.137 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.09219, allocations: 358.8 kB / 363.3 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002104/0.09241, allocations: 117.1 kB / 363.4 MB, free: 6.664 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002849/0.0927, allocations: 266.6 kB / 363.6 MB, free: 6.344 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000479/0.09319, allocations: 426.5 kB / 364.1 MB, free: 5.859 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.0932, allocations: 0 / 364.1 MB, free: 5.859 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006876/0.0939, allocations: 482.6 kB / 364.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.09394, allocations: 41.67 kB / 364.6 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.09395, allocations: 4 kB / 364.6 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.09397, allocations: 8 kB / 364.6 MB, free: 5.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.09409, allocations: 43.84 kB / 364.6 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.09411, allocations: 8.312 kB / 364.6 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002142/0.09433, allocations: 51.61 kB / 364.7 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.628e-05/0.09437, allocations: 27.98 kB / 364.7 MB, free: 5.188 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.0002137/0.09459, allocations: 248.6 kB / 364.9 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.429e-05/0.09466, allocations: 47.44 kB / 365 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004338/0.0951, allocations: 265.2 kB / 365.3 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.09511, allocations: 4 kB / 365.3 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.09512, allocations: 0 / 365.3 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.09513, allocations: 3.938 kB / 365.3 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008845/0.09602, allocations: 0.7864 MB / 366 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.09604, allocations: 7.938 kB / 366.1 MB, free: 3.758 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.001e-05/0.0961, allocations: 15.92 kB / 366.1 MB, free: 3.742 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.0961, allocations: 4 kB / 366.1 MB, free: 3.738 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/0.09613, allocations: 8 kB / 366.1 MB, free: 3.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.09614, allocations: 8 kB / 366.1 MB, free: 3.723 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.09615, allocations: 7.984 kB / 366.1 MB, free: 3.715 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006241/0.09678, allocations: 0.517 MB / 366.6 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.248e-05/0.09686, allocations: 116.5 kB / 366.7 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.95e-05/0.09693, allocations: 12 kB / 366.7 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001983/0.09713, allocations: 27.97 kB / 366.8 MB, free: 3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.194e-05/0.09723, allocations: 43.89 kB / 366.8 MB, free: 2.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.004e-05/0.09727, allocations: 19.98 kB / 366.8 MB, free: 2.938 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002939/0.09757, allocations: 315.1 kB / 367.1 MB, free: 2.633 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.09757, allocations: 0 / 367.1 MB, free: 2.633 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004116/0.09799, allocations: 124 kB / 367.3 MB, free: 2.512 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.001673/0.09967, allocations: 1.405 MB / 368.7 MB, free: 1.223 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006172/0.1003, allocations: 426.8 kB / 369.1 MB, free: 0.793 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1003, allocations: 0 / 369.1 MB, free: 0.793 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003007/0.1006, allocations: 243.2 kB / 369.3 MB, free: 0.543 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004892/0.1011, allocations: 82.39 kB / 369.4 MB, free: 476 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1246/0.2257, allocations: 4.06 MB / 373.5 MB, free: 23.67 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.226, allocations: 0.8409 MB / 374.3 MB, free: 22.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002216/0.2263, allocations: 80.12 kB / 374.4 MB, free: 22.97 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001882/0.2265, allocations: 159.9 kB / 374.5 MB, free: 22.92 MB / 302.1 MB Notification: Performance of SimCode: time 8.32e-07/0.2265, allocations: 1.469 kB / 374.5 MB, free: 22.92 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7718/0.9983, allocations: 9.904 MB / 384.4 MB, free: 20.22 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.23/14.23, allocations: 3.812 kB / 384.4 MB, free: 20.22 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 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.mat","/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