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.001791/0.001791, allocations: 114.9 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002114/0.002114, allocations: 205.9 kB / 18.74 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.484/1.484, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 63.88 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.2828, allocations: 50.55 MB / 408.8 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004819/0.2877, allocations: 2.481 MB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003912/0.2917, allocations: 1.473 MB / 412.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00028/0.292, allocations: 11.94 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009911/0.293, allocations: 227 kB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006908/0.2937, allocations: 207 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009136/0.2946, allocations: 259.4 kB / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000794/0.2954, allocations: 495.7 kB / 414 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005/0.2959, allocations: 205.8 kB / 414.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003518/0.2963, allocations: 195.2 kB / 414.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003778/0.2967, allocations: 219 kB / 414.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.806e-05/0.2968, allocations: 32 kB / 414.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003782/0.2972, allocations: 123.8 kB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002219/0.2974, allocations: 123.6 kB / 414.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003433/0.2978, allocations: 226.7 kB / 415.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001075/0.2989, allocations: 0.563 MB / 415.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.2989, allocations: 0 / 415.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.093e-06/0.2989, allocations: 0 / 415.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.2989, allocations: 7.938 kB / 415.6 MB, free: 10.63 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.002139/0.3011, allocations: 0.8741 MB / 416.5 MB, free: 9.691 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.331e-05/0.3011, allocations: 8.031 kB / 416.5 MB, free: 9.684 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001275/0.3013, allocations: 78.72 kB / 416.6 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003996/0.3017, allocations: 68.55 kB / 416.7 MB, free: 9.531 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007995/0.3025, allocations: 395.4 kB / 417 MB, free: 9.105 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001122/0.3026, allocations: 63 kB / 417.1 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.461e-05/0.3027, allocations: 40 kB / 417.1 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001044/0.3038, allocations: 420.7 kB / 417.5 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.3038, allocations: 7.938 kB / 417.6 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.38e-05/0.3039, allocations: 16 kB / 417.6 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.914e-05/0.304, allocations: 20.42 kB / 417.6 MB, free: 8.504 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007675/0.3047, allocations: 261.5 kB / 417.8 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00314/0.3079, allocations: 1.686 MB / 419.5 MB, free: 6.477 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008561/0.3088, allocations: 291.9 kB / 419.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003512/0.3091, allocations: 126.5 kB / 419.9 MB, free: 6.031 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.854e-05/0.3092, allocations: 7.984 kB / 419.9 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007741/0.31, allocations: 320 kB / 420.3 MB, free: 5.672 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 4.187e-06/0.31, allocations: 0 / 420.3 MB, free: 5.672 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.001464/0.3115, allocations: 474.6 kB / 420.7 MB, free: 5.199 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001669/0.3117, allocations: 170.1 kB / 420.9 MB, free: 4.996 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009063/0.3126, allocations: 0.4935 MB / 421.4 MB, free: 4.492 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.279e-05/0.3127, allocations: 37.7 kB / 421.4 MB, free: 4.449 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002932/0.313, allocations: 240.9 kB / 421.7 MB, free: 4.211 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.3131, allocations: 87.38 kB / 421.7 MB, free: 4.125 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002527/0.3134, allocations: 122.2 kB / 421.9 MB, free: 4 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002651/0.3137, allocations: 358.7 kB / 422.2 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003634/0.314, allocations: 117.1 kB / 422.3 MB, free: 3.527 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000538/0.3146, allocations: 262.7 kB / 422.6 MB, free: 3.207 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007904/0.3154, allocations: 406.5 kB / 423 MB, free: 2.742 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.3154, allocations: 4.25 kB / 423 MB, free: 2.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001212/0.3166, allocations: 466.5 kB / 423.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.191e-05/0.3167, allocations: 33.7 kB / 423.5 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.3167, allocations: 4 kB / 423.5 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.788e-05/0.3168, allocations: 8 kB / 423.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002176/0.317, allocations: 44.31 kB / 423.5 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.867e-05/0.317, allocations: 11.94 kB / 423.5 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003944/0.3174, allocations: 67.62 kB / 423.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.847e-05/0.3175, allocations: 20 kB / 423.6 MB, free: 2.078 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.0004473/0.318, allocations: 252.5 kB / 423.9 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.3181, allocations: 51.67 kB / 423.9 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006536/0.3188, allocations: 233.2 kB / 424.1 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.3188, allocations: 4 kB / 424.2 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.3188, allocations: 0 / 424.2 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.3188, allocations: 3.984 kB / 424.2 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00157/0.3204, allocations: 0.7433 MB / 424.9 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3204, allocations: 0 / 424.9 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.57e-05/0.3205, allocations: 15.92 kB / 424.9 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.096e-06/0.3205, allocations: 8 kB / 424.9 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.342e-05/0.3206, allocations: 12 kB / 424.9 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.652e-06/0.3206, allocations: 4.156 kB / 424.9 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.3206, allocations: 0 / 424.9 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00112/0.3217, allocations: 496.5 kB / 425.4 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001455/0.3219, allocations: 120.8 kB / 425.5 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.322, allocations: 23.98 kB / 425.6 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003566/0.3224, allocations: 20.03 kB / 425.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001926/0.3226, allocations: 43.84 kB / 425.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.922e-05/0.3227, allocations: 15.98 kB / 425.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005943/0.3233, allocations: 335.1 kB / 426 MB, free: 15.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3233, allocations: 0 / 426 MB, free: 15.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008693/0.3241, allocations: 111.7 kB / 426.1 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.003634/0.3278, allocations: 1.381 MB / 427.5 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.329, allocations: 395 kB / 427.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.329, allocations: 0 / 427.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005238/0.3295, allocations: 235.2 kB / 428.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008834/0.3304, allocations: 79.09 kB / 428.2 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008232/0.3387, allocations: 4.037 MB / 432.2 MB, free: 9.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006731/0.3394, allocations: 0.8356 MB / 433 MB, free: 8.406 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004041/0.3398, allocations: 75.56 kB / 433.1 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003797/0.3402, allocations: 159.4 kB / 433.3 MB, free: 8.172 MB / 350.1 MB Notification: Performance of SimCode: time 1.703e-06/0.3402, allocations: 0 / 433.3 MB, free: 8.172 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04438/0.3846, allocations: 9.857 MB / 443.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.374/9.759, allocations: 10.58 kB / 443.1 MB, free: 14.4 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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