Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001652/0.001652, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002395/0.002395, allocations: 214.6 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.626/1.626, allocations: 230.5 MB / 257.4 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] 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.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 75.88 kB / 377.7 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3438/0.3457, allocations: 53.41 MB / 431.1 MB, free: 6.562 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003393/0.3491, allocations: 1.969 MB / 433.1 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00226/0.3514, allocations: 1.223 MB / 434.3 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.3515, allocations: 3.938 kB / 434.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008978/0.3524, allocations: 314.5 kB / 434.6 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005556/0.3529, allocations: 263.1 kB / 434.9 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005194/0.3535, allocations: 227.5 kB / 435.1 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003806/0.3538, allocations: 359.1 kB / 435.5 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.354, allocations: 40.7 kB / 435.5 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001697/0.3541, allocations: 151.4 kB / 435.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000192/0.3543, allocations: 155.3 kB / 435.8 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.747e-05/0.3544, allocations: 23.94 kB / 435.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001958/0.3546, allocations: 99.84 kB / 435.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001157/0.3547, allocations: 83.75 kB / 436 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000105/0.3548, allocations: 95.39 kB / 436.1 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004147/0.3552, allocations: 364.6 kB / 436.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.3552, allocations: 0 / 436.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.22e-07/0.3552, allocations: 3.938 kB / 436.5 MB, free: 1.219 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.226e-06/0.3552, allocations: 7.938 kB / 436.5 MB, free: 1.211 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001003/0.3562, allocations: 0.6088 MB / 437.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.3563, allocations: 11.98 kB / 437.1 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.331e-05/0.3563, allocations: 42.75 kB / 437.1 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.763e-05/0.3564, allocations: 40.69 kB / 437.2 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004109/0.3568, allocations: 280.8 kB / 437.4 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.3568, allocations: 12.36 kB / 437.5 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.449e-05/0.3568, allocations: 12.38 kB / 437.5 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002446/0.3571, allocations: 128.7 kB / 437.6 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.3571, allocations: 0 / 437.6 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.131e-05/0.3571, allocations: 8.078 kB / 437.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.3571, allocations: 4 kB / 437.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001678/0.3573, allocations: 71.95 kB / 437.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006353/0.3579, allocations: 439.5 kB / 438.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003083/0.3582, allocations: 134.7 kB / 438.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.3583, allocations: 44.84 kB / 438.3 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.3584, allocations: 8 kB / 438.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002151/0.3586, allocations: 118.3 kB / 438.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.293e-06/0.3586, allocations: 0 / 438.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004869/0.3591, allocations: 233.2 kB / 438.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.3591, allocations: 55.41 kB / 438.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005832/0.3597, allocations: 457.6 kB / 439.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.872e-05/0.3597, allocations: 33.7 kB / 439.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001515/0.3599, allocations: 175.9 kB / 439.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.014e-05/0.3599, allocations: 39.69 kB / 439.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.539e-05/0.36, allocations: 49.69 kB / 439.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.3602, allocations: 342.8 kB / 439.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.3603, allocations: 47.97 kB / 439.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001782/0.3605, allocations: 142.6 kB / 439.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.3607, allocations: 110.5 kB / 440 MB, free: 13.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.3607, allocations: 0 / 440 MB, free: 13.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.00034/0.361, allocations: 192.4 kB / 440.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.361, allocations: 4 kB / 440.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.3611, allocations: 0 / 440.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.37e-05/0.3611, allocations: 7.938 kB / 440.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.3612, allocations: 23.92 kB / 440.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.3612, allocations: 4 kB / 440.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.3613, allocations: 19.88 kB / 440.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.3613, allocations: 11.94 kB / 440.3 MB, free: 13.13 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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.0001841/0.3615, allocations: 171.4 kB / 440.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.529e-05/0.3616, allocations: 39.81 kB / 440.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004127/0.362, allocations: 200.4 kB / 440.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.362, allocations: 4 kB / 440.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.362, allocations: 4 kB / 440.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.362, allocations: 0 / 440.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002937/0.3623, allocations: 260.5 kB / 441 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.3623, allocations: 0 / 441 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.942e-05/0.3623, allocations: 11.98 kB / 441 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.3623, allocations: 7.938 kB / 441 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.3624, allocations: 7.938 kB / 441 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3624, allocations: 4 kB / 441 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3624, allocations: 0 / 441 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003611/0.3627, allocations: 216.8 kB / 441.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.012e-05/0.3628, allocations: 35.8 kB / 441.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.112e-05/0.3628, allocations: 3.938 kB / 441.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.44e-05/0.3629, allocations: 15.98 kB / 441.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.929e-05/0.363, allocations: 15.97 kB / 441.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.969e-05/0.363, allocations: 7.984 kB / 441.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004182/0.3634, allocations: 335.1 kB / 441.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3634, allocations: 0 / 441.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002906/0.3637, allocations: 59.88 kB / 441.7 MB, free: 11.69 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.002121/0.3658, allocations: 1.09 MB / 442.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003236/0.3662, allocations: 126.2 kB / 442.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3662, allocations: 0 / 442.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001426/0.3663, allocations: 63.91 kB / 443 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004111/0.3667, allocations: 77.28 kB / 443 MB, free: 10.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003614/0.3703, allocations: 2.899 MB / 445.9 MB, free: 7.469 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001674/0.3705, allocations: 170.2 kB / 446.1 MB, free: 7.285 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001255/0.3706, allocations: 42.25 kB / 446.1 MB, free: 7.242 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001512/0.3708, allocations: 99.41 kB / 446.2 MB, free: 7.145 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3708, allocations: 0 / 446.2 MB, free: 7.145 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05032/0.4211, allocations: 8.174 MB / 454.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.44, allocations: 4.062 kB / 454.4 MB, free: 15.02 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00199601 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.501110495999455]