Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_3_2_3_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.0008826/0.0008828, allocations: 99.28 kB / 17.3 MB, free: 6.395 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.00117/0.00117, allocations: 179.4 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.355/1.355, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005375/0.0005372, allocations: 8.516 kB / 281.5 MB, free: 3.348 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1054, allocations: 47.59 MB / 329 MB, free: 3.684 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003488/0.1089, allocations: 2.105 MB / 331.2 MB, free: 1.562 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00243/0.1114, allocations: 1.225 MB / 332.4 MB, free: 336 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002103/0.1116, allocations: 7.938 kB / 332.4 MB, free: 328 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006622/0.1123, allocations: 207.3 kB / 332.6 MB, free: 120 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003414/0.1126, allocations: 139.5 kB / 332.7 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000577/0.1132, allocations: 243.5 kB / 333 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004367/0.1137, allocations: 451.8 kB / 333.4 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003171/0.114, allocations: 197.8 kB / 333.6 MB, free: 15.1 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001665/0.1142, allocations: 147.2 kB / 333.7 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001934/0.1144, allocations: 171.1 kB / 333.9 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.65e-05/0.1144, allocations: 12 kB / 333.9 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001972/0.1146, allocations: 91.88 kB / 334 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.1147, allocations: 99.59 kB / 334.1 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001751/0.1149, allocations: 208.3 kB / 334.3 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004946/0.1154, allocations: 498.4 kB / 334.8 MB, free: 13.89 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.1154, allocations: 0 / 334.8 MB, free: 13.89 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1154, allocations: 0 / 334.8 MB, free: 13.89 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.1154, allocations: 0 / 334.8 MB, free: 13.89 MB / 286.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.001182/0.1166, allocations: 0.7696 MB / 335.6 MB, free: 13.06 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.1167, allocations: 8.031 kB / 335.6 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.731e-05/0.1168, allocations: 78.7 kB / 335.6 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.775e-05/0.1169, allocations: 56.28 kB / 335.7 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004988/0.1174, allocations: 395 kB / 336.1 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.607e-05/0.1175, allocations: 59.02 kB / 336.1 MB, free: 12.42 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.385e-05/0.1176, allocations: 40 kB / 336.2 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006586/0.1182, allocations: 424.7 kB / 336.6 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.1182, allocations: 4 kB / 336.6 MB, free: 11.92 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.911e-05/0.1183, allocations: 23.98 kB / 336.6 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.659e-05/0.1183, allocations: 12.44 kB / 336.6 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004876/0.1188, allocations: 265.5 kB / 336.9 MB, free: 11.63 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002005/0.1208, allocations: 1.698 MB / 338.6 MB, free: 9.844 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005756/0.1214, allocations: 295.8 kB / 338.9 MB, free: 9.527 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000235/0.1217, allocations: 134.4 kB / 339 MB, free: 9.387 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.196e-05/0.1218, allocations: 20.05 kB / 339 MB, free: 9.367 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004632/0.1222, allocations: 327.8 kB / 339.4 MB, free: 9.008 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 1.853e-06/0.1222, allocations: 0 / 339.4 MB, free: 9.008 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.000947/0.1232, allocations: 494.4 kB / 339.8 MB, free: 8.512 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.1233, allocations: 158.2 kB / 340 MB, free: 8.32 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000522/0.1238, allocations: 489.3 kB / 340.5 MB, free: 7.836 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.933e-05/0.1239, allocations: 37.7 kB / 340.5 MB, free: 7.793 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001872/0.1241, allocations: 240.5 kB / 340.7 MB, free: 7.555 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.442e-05/0.1242, allocations: 82.91 kB / 340.8 MB, free: 7.473 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.699e-05/0.1242, allocations: 77.67 kB / 340.9 MB, free: 7.391 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002001/0.1245, allocations: 362.7 kB / 341.3 MB, free: 7.027 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002352/0.1247, allocations: 113.1 kB / 341.4 MB, free: 6.918 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003354/0.125, allocations: 270.7 kB / 341.6 MB, free: 6.59 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005509/0.1256, allocations: 434.7 kB / 342.1 MB, free: 6.098 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.151e-06/0.1256, allocations: 4 kB / 342.1 MB, free: 6.094 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007255/0.1264, allocations: 478.2 kB / 342.5 MB, free: 5.613 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.72e-05/0.1264, allocations: 33.7 kB / 342.6 MB, free: 5.574 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.1264, allocations: 4.625 kB / 342.6 MB, free: 5.57 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.1264, allocations: 12 kB / 342.6 MB, free: 5.559 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.1266, allocations: 43.84 kB / 342.6 MB, free: 5.516 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.505e-05/0.1266, allocations: 11.98 kB / 342.6 MB, free: 5.504 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002358/0.1268, allocations: 55.66 kB / 342.7 MB, free: 5.449 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.272e-05/0.1269, allocations: 24 kB / 342.7 MB, free: 5.426 MB / 286.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.0002702/0.1272, allocations: 252.5 kB / 343 MB, free: 5.16 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.211e-05/0.1272, allocations: 47.42 kB / 343 MB, free: 5.113 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005205/0.1278, allocations: 265.3 kB / 343.3 MB, free: 4.84 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.1278, allocations: 4 kB / 343.3 MB, free: 4.836 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.1278, allocations: 3.938 kB / 343.3 MB, free: 4.832 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.1278, allocations: 4 kB / 343.3 MB, free: 4.828 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00122/0.129, allocations: 0.7828 MB / 344.1 MB, free: 3.988 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1291, allocations: 0 / 344.1 MB, free: 3.988 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.708e-05/0.1291, allocations: 15.98 kB / 344.1 MB, free: 3.973 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.1291, allocations: 7.875 kB / 344.1 MB, free: 3.965 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.92e-05/0.1292, allocations: 19.98 kB / 344.1 MB, free: 3.945 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.1292, allocations: 3.938 kB / 344.1 MB, free: 3.941 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1292, allocations: 0 / 344.1 MB, free: 3.941 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000706/0.1299, allocations: 0.5067 MB / 344.6 MB, free: 3.406 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.987e-05/0.13, allocations: 124.5 kB / 344.7 MB, free: 3.266 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.589e-05/0.1301, allocations: 23.92 kB / 344.8 MB, free: 3.242 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.1303, allocations: 31.97 kB / 344.8 MB, free: 3.211 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.1304, allocations: 35.95 kB / 344.8 MB, free: 3.176 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.375e-05/0.1305, allocations: 15.98 kB / 344.8 MB, free: 3.16 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003458/0.1308, allocations: 327.1 kB / 345.2 MB, free: 2.844 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1308, allocations: 0 / 345.2 MB, free: 2.844 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004689/0.1313, allocations: 124 kB / 345.3 MB, free: 2.723 MB / 286.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.001948/0.1332, allocations: 1.394 MB / 346.7 MB, free: 1.305 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000735/0.134, allocations: 404 kB / 347.1 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.134, allocations: 3.938 kB / 347.1 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003363/0.1344, allocations: 235.3 kB / 347.3 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006373/0.135, allocations: 81.5 kB / 347.4 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006112/0.1411, allocations: 4.197 MB / 351.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005773/0.1417, allocations: 0.8397 MB / 352.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002417/0.142, allocations: 91.73 kB / 352.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002281/0.1422, allocations: 155.4 kB / 352.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of SimCode: time 1.262e-06/0.1422, allocations: 0 / 352.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02275/0.165, allocations: 9.197 MB / 361.8 MB, free: 1.848 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002616/0.1653, allocations: 235.8 kB / 362.1 MB, free: 1.582 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.313/2.478, allocations: 0 / 362.1 MB, free: 1.582 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches