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.001185/0.001185, allocations: 108.9 kB / 16.51 MB, free: 6.707 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.001271/0.001271, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.359/1.359, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 43.17 kB / 300 MB, free: 6.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09482/0.09606, allocations: 49.45 MB / 349.5 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004786/0.1009, allocations: 2.491 MB / 352 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00283/0.1037, allocations: 1.305 MB / 353.3 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004259/0.1042, allocations: 11.94 kB / 353.3 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009431/0.1052, allocations: 216 kB / 353.5 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004977/0.1057, allocations: 139.5 kB / 353.7 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000871/0.1066, allocations: 257 kB / 353.9 MB, free: 340 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007483/0.1073, allocations: 455.7 kB / 354.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003902/0.1077, allocations: 205.8 kB / 354.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000297/0.108, allocations: 171.2 kB / 354.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002889/0.1083, allocations: 211 kB / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.759e-05/0.1084, allocations: 20 kB / 354.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002582/0.1087, allocations: 99.89 kB / 355 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000143/0.1088, allocations: 111.6 kB / 355.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002326/0.1091, allocations: 206.7 kB / 355.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006218/0.1097, allocations: 0.4985 MB / 355.8 MB, free: 14.37 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.1097, allocations: 0 / 355.8 MB, free: 14.37 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1097, allocations: 0 / 355.8 MB, free: 14.37 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.504e-05/0.1097, allocations: 4 kB / 355.9 MB, free: 14.36 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.001819/0.1116, allocations: 0.8476 MB / 356.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.1116, allocations: 8.031 kB / 356.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001009/0.1117, allocations: 74.72 kB / 356.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/0.1119, allocations: 56.28 kB / 356.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006974/0.1126, allocations: 394.7 kB / 357.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.915e-05/0.1127, allocations: 70.64 kB / 357.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.75e-05/0.1128, allocations: 32 kB / 357.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008498/0.1136, allocations: 436.6 kB / 357.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.1136, allocations: 0 / 357.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.754e-05/0.1137, allocations: 12 kB / 357.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.315e-05/0.1137, allocations: 20.42 kB / 357.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005501/0.1143, allocations: 269.5 kB / 358 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002285/0.1166, allocations: 1.678 MB / 359.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006211/0.1172, allocations: 296 kB / 360 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002556/0.1175, allocations: 126.5 kB / 360.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.035e-05/0.1176, allocations: 20 kB / 360.2 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005751/0.1181, allocations: 320.6 kB / 360.5 MB, free: 9.434 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.605e-06/0.1182, allocations: 3.938 kB / 360.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.001043/0.1192, allocations: 486.5 kB / 360.9 MB, free: 8.941 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002139/0.1194, allocations: 166.2 kB / 361.1 MB, free: 8.742 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005561/0.12, allocations: 497.1 kB / 361.6 MB, free: 8.246 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.783e-05/0.1201, allocations: 41.7 kB / 361.6 MB, free: 8.199 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001867/0.1203, allocations: 232.5 kB / 361.9 MB, free: 7.969 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.014e-05/0.1204, allocations: 79 kB / 361.9 MB, free: 7.891 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001605/0.1205, allocations: 118.2 kB / 362.1 MB, free: 7.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1207, allocations: 362.8 kB / 362.4 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002425/0.121, allocations: 121 kB / 362.5 MB, free: 7.289 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003469/0.1213, allocations: 270.9 kB / 362.8 MB, free: 6.965 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005675/0.1219, allocations: 418.5 kB / 363.2 MB, free: 6.488 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.1219, allocations: 4 kB / 363.2 MB, free: 6.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000871/0.1228, allocations: 478.3 kB / 363.7 MB, free: 6.004 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.244e-05/0.1228, allocations: 41.7 kB / 363.7 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.1229, allocations: 4 kB / 363.7 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.1229, allocations: 4 kB / 363.7 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.123, allocations: 39.91 kB / 363.8 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.445e-05/0.1231, allocations: 11.94 kB / 363.8 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002988/0.1234, allocations: 51.92 kB / 363.8 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.585e-05/0.1234, allocations: 27.98 kB / 363.8 MB, free: 5.82 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.0002741/0.1237, allocations: 248.6 kB / 364.1 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.596e-05/0.1238, allocations: 47.44 kB / 364.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005094/0.1243, allocations: 267.1 kB / 364.4 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.1243, allocations: 8 kB / 364.4 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.1243, allocations: 0 / 364.4 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.842e-06/0.1243, allocations: 7.875 kB / 364.4 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/0.1254, allocations: 0.775 MB / 365.2 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/0.1255, allocations: 3.938 kB / 365.2 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.433e-05/0.1255, allocations: 19.92 kB / 365.2 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.1255, allocations: 4 kB / 365.2 MB, free: 4.367 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.073e-05/0.1256, allocations: 16 kB / 365.2 MB, free: 4.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.1256, allocations: 0 / 365.2 MB, free: 4.352 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.1256, allocations: 7.922 kB / 365.2 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000786/0.1264, allocations: 0.5058 MB / 365.7 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.577e-05/0.1265, allocations: 128.5 kB / 365.9 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.257e-05/0.1266, allocations: 15.98 kB / 365.9 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002105/0.1268, allocations: 19.98 kB / 365.9 MB, free: 3.633 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.1269, allocations: 39.94 kB / 365.9 MB, free: 3.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-05/0.127, allocations: 16 kB / 366 MB, free: 3.578 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003542/0.1273, allocations: 323.1 kB / 366.3 MB, free: 3.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1273, allocations: 0 / 366.3 MB, free: 3.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004861/0.1278, allocations: 116 kB / 366.4 MB, free: 3.156 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.002042/0.1299, allocations: 1.416 MB / 367.8 MB, free: 1.863 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006919/0.1306, allocations: 395 kB / 368.2 MB, free: 1.465 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1306, allocations: 0 / 368.2 MB, free: 1.465 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003518/0.131, allocations: 236.1 kB / 368.4 MB, free: 1.223 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005998/0.1316, allocations: 81.52 kB / 368.5 MB, free: 1.141 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1695/0.301, allocations: 4.184 MB / 372.7 MB, free: 23.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00042/0.3015, allocations: 0.8404 MB / 373.5 MB, free: 23.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002678/0.3018, allocations: 77.02 kB / 373.6 MB, free: 23.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002445/0.302, allocations: 164 kB / 373.8 MB, free: 23.17 MB / 302.1 MB Notification: Performance of SimCode: time 1.903e-06/0.302, allocations: 2.531 kB / 373.8 MB, free: 23.17 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02787/0.3299, allocations: 9.439 MB / 383.2 MB, free: 20.79 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001982/0.3301, allocations: 232.7 kB / 383.4 MB, free: 20.54 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.09/2.421, allocations: 4 kB / 383.4 MB, free: 20.53 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