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.001273/0.001273, allocations: 91.77 kB / 16.65 MB, free: 6.535 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.001547/0.001547, allocations: 177.6 kB / 17.56 MB, free: 6.18 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.516/1.516, allocations: 223.3 MB / 241.6 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003025/0.0003028, allocations: 4.688 kB / 301.5 MB, free: 6.066 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.107, allocations: 50.41 MB / 351.9 MB, free: 3.648 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003217/0.1102, allocations: 2.109 MB / 354 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002325/0.1126, allocations: 1.282 MB / 355.3 MB, free: 236 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001793/0.1128, allocations: 11.94 kB / 355.3 MB, free: 224 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006997/0.1135, allocations: 217.8 kB / 355.5 MB, free: 8 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003479/0.1139, allocations: 135.6 kB / 355.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006258/0.1145, allocations: 260.6 kB / 355.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004718/0.115, allocations: 447.6 kB / 356.4 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003482/0.1153, allocations: 197.8 kB / 356.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001758/0.1155, allocations: 155.2 kB / 356.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002084/0.1157, allocations: 171 kB / 356.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.6e-05/0.1158, allocations: 8 kB / 356.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001982/0.116, allocations: 95.88 kB / 357 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001285/0.1161, allocations: 99.59 kB / 357.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000202/0.1163, allocations: 200.4 kB / 357.3 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005189/0.1169, allocations: 498.4 kB / 357.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1169, allocations: 0 / 357.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1169, allocations: 0 / 357.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.1169, allocations: 0 / 357.8 MB, free: 13.77 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.001328/0.1182, allocations: 0.7698 MB / 358.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.1183, allocations: 8.031 kB / 358.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001082/0.1184, allocations: 74.7 kB / 358.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000144/0.1186, allocations: 60.28 kB / 358.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005287/0.1191, allocations: 390.8 kB / 359.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.712e-05/0.1192, allocations: 58.69 kB / 359.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.43e-05/0.1193, allocations: 40 kB / 359.1 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006666/0.1199, allocations: 436.6 kB / 359.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.12, allocations: 0 / 359.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.476e-05/0.12, allocations: 12 kB / 359.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.165e-05/0.12, allocations: 20.42 kB / 359.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004859/0.1205, allocations: 265.5 kB / 359.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002068/0.1226, allocations: 1.698 MB / 361.6 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006134/0.1232, allocations: 296 kB / 361.9 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002341/0.1235, allocations: 134.4 kB / 362 MB, free: 9.266 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.683e-05/0.1236, allocations: 8 kB / 362 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005117/0.1241, allocations: 328.6 kB / 362.3 MB, free: 8.898 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.894e-06/0.1241, allocations: 0 / 362.3 MB, free: 8.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009907/0.1251, allocations: 494 kB / 362.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.1252, allocations: 170.2 kB / 363 MB, free: 8.203 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005719/0.1258, allocations: 493.2 kB / 363.4 MB, free: 7.711 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.854e-05/0.1258, allocations: 41.69 kB / 363.5 MB, free: 7.664 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002485/0.1261, allocations: 232.6 kB / 363.7 MB, free: 7.434 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.1262, allocations: 86.89 kB / 363.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.254e-05/0.1263, allocations: 73.67 kB / 363.9 MB, free: 7.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.1265, allocations: 358.8 kB / 364.2 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000251/0.1268, allocations: 121.1 kB / 364.3 MB, free: 6.793 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003552/0.1271, allocations: 274.6 kB / 364.6 MB, free: 6.469 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006308/0.1278, allocations: 418.5 kB / 365 MB, free: 5.992 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.315e-06/0.1278, allocations: 7.938 kB / 365 MB, free: 5.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008289/0.1286, allocations: 478.3 kB / 365.5 MB, free: 5.504 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.947e-05/0.1287, allocations: 41.69 kB / 365.5 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.1287, allocations: 4 kB / 365.5 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/0.1287, allocations: 8 kB / 365.5 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.1289, allocations: 44.22 kB / 365.6 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.7e-05/0.1289, allocations: 7.938 kB / 365.6 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002569/0.1292, allocations: 63.89 kB / 365.7 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.212e-05/0.1292, allocations: 20 kB / 365.7 MB, free: 5.312 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.0003474/0.1296, allocations: 252.5 kB / 365.9 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.832e-05/0.1297, allocations: 51.44 kB / 366 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005606/0.1302, allocations: 257.4 kB / 366.2 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.1303, allocations: 4 kB / 366.2 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/0.1303, allocations: 3.984 kB / 366.2 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.1303, allocations: 7.938 kB / 366.2 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001303/0.1316, allocations: 0.7751 MB / 367 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.1316, allocations: 3.938 kB / 367 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.183e-05/0.1317, allocations: 19.94 kB / 367 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.893e-06/0.1317, allocations: 3.984 kB / 367 MB, free: 3.855 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.09e-05/0.1318, allocations: 16 kB / 367.1 MB, free: 3.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.1318, allocations: 0 / 367.1 MB, free: 3.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.1318, allocations: 7.984 kB / 367.1 MB, free: 3.832 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008021/0.1326, allocations: 0.521 MB / 367.6 MB, free: 3.285 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.1327, allocations: 128.4 kB / 367.7 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.227e-05/0.1328, allocations: 15.98 kB / 367.7 MB, free: 3.125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/0.133, allocations: 23.98 kB / 367.7 MB, free: 3.102 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.1332, allocations: 43.94 kB / 367.8 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.59e-05/0.1332, allocations: 20 kB / 367.8 MB, free: 3.039 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004116/0.1336, allocations: 323.1 kB / 368.1 MB, free: 2.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1336, allocations: 0 / 368.1 MB, free: 2.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005147/0.1341, allocations: 116 kB / 368.2 MB, free: 2.617 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.002428/0.1366, allocations: 1.407 MB / 369.6 MB, free: 1.336 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007558/0.1374, allocations: 399.2 kB / 370 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1374, allocations: 0 / 370 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003968/0.1378, allocations: 247.2 kB / 370.3 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006413/0.1384, allocations: 74.33 kB / 370.4 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1941/0.3325, allocations: 4.192 MB / 374.5 MB, free: 22.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.3329, allocations: 0.8412 MB / 375.4 MB, free: 21.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002566/0.3332, allocations: 74.11 kB / 375.5 MB, free: 21.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002046/0.3334, allocations: 165.7 kB / 375.6 MB, free: 21.67 MB / 302.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3334, allocations: 3.125 kB / 375.6 MB, free: 21.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02387/0.3573, allocations: 9.194 MB / 384.8 MB, free: 19.47 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001759/0.3575, allocations: 229.9 kB / 385 MB, free: 19.22 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.334/2.692, allocations: 0 / 385 MB, free: 19.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