Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.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.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",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.001754/0.001754, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.001998/0.001998, allocations: 187 kB / 18.67 MB, free: 4.402 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.472/1.472, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001699/0.001699, allocations: 55.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1021, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003794/0.106, allocations: 1.981 MB / 376.6 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001972/0.108, allocations: 1.061 MB / 377.7 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.1081, allocations: 4 kB / 377.7 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008675/0.109, allocations: 311.1 kB / 378 MB, free: 1.703 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005485/0.1096, allocations: 199.3 kB / 378.2 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007067/0.1103, allocations: 263.4 kB / 378.4 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005099/0.1108, allocations: 339.2 kB / 378.8 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001638/0.111, allocations: 68.33 kB / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002062/0.1112, allocations: 135.5 kB / 379 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002413/0.1114, allocations: 147.4 kB / 379.1 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.69e-05/0.1115, allocations: 19.98 kB / 379.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001913/0.1117, allocations: 83.89 kB / 379.2 MB, free: 484 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.1118, allocations: 83.73 kB / 379.3 MB, free: 400 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001461/0.112, allocations: 127.2 kB / 379.4 MB, free: 272 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2011/0.3131, allocations: 349.8 kB / 379.8 MB, free: 9.926 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.058e-05/0.3131, allocations: 0 / 379.8 MB, free: 9.926 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3132, allocations: 1.203 kB / 379.8 MB, free: 9.926 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.497e-05/0.3132, allocations: 1.25 kB / 379.8 MB, free: 9.926 MB / 318.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.001403/0.3146, allocations: 0.666 MB / 380.4 MB, free: 9.375 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.423e-05/0.3147, allocations: 10.31 kB / 380.4 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.682e-05/0.3148, allocations: 44.5 kB / 380.5 MB, free: 9.336 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001131/0.3149, allocations: 36.48 kB / 380.5 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004748/0.3154, allocations: 335.1 kB / 380.8 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.535e-05/0.3154, allocations: 10.12 kB / 380.9 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.458e-05/0.3155, allocations: 12 kB / 380.9 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003844/0.3158, allocations: 151.8 kB / 381 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.3159, allocations: 4.719 kB / 381 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.3159, allocations: 5.422 kB / 381 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.3159, allocations: 2.969 kB / 381 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001972/0.3161, allocations: 69.11 kB / 381.1 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009379/0.3171, allocations: 499.3 kB / 381.6 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003498/0.3174, allocations: 134.6 kB / 381.7 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.3176, allocations: 52.36 kB / 381.8 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.966e-05/0.3176, allocations: 3.156 kB / 381.8 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002942/0.3179, allocations: 112.4 kB / 381.9 MB, free: 8.656 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.793e-06/0.3179, allocations: 0 / 381.9 MB, free: 8.656 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005656/0.3185, allocations: 222.5 kB / 382.1 MB, free: 8.602 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/0.3186, allocations: 111.6 kB / 382.2 MB, free: 8.477 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007055/0.3193, allocations: 428.1 kB / 382.6 MB, free: 8.359 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.688e-05/0.3193, allocations: 33.67 kB / 382.7 MB, free: 8.328 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.3195, allocations: 164.2 kB / 382.8 MB, free: 8.238 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.001e-05/0.3195, allocations: 43.03 kB / 382.9 MB, free: 8.215 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.813e-05/0.3196, allocations: 41.67 kB / 382.9 MB, free: 8.199 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.3198, allocations: 346.2 kB / 383.2 MB, free: 7.887 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001284/0.3199, allocations: 42.52 kB / 383.3 MB, free: 7.887 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001827/0.3201, allocations: 101.2 kB / 383.4 MB, free: 7.832 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002554/0.3204, allocations: 112.4 kB / 383.5 MB, free: 7.805 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3204, allocations: 0 / 383.5 MB, free: 7.805 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003883/0.3208, allocations: 179.8 kB / 383.7 MB, free: 7.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.3208, allocations: 5.094 kB / 383.7 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.3208, allocations: 6.016 kB / 383.7 MB, free: 7.746 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/0.3208, allocations: 1.594 kB / 383.7 MB, free: 7.746 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001451/0.321, allocations: 29.08 kB / 383.7 MB, free: 7.746 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.321, allocations: 2.062 kB / 383.7 MB, free: 7.746 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000134/0.3212, allocations: 23.89 kB / 383.7 MB, free: 7.738 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.3212, allocations: 6.297 kB / 383.7 MB, free: 7.738 MB / 318.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.0001803/0.3214, allocations: 167.3 kB / 383.9 MB, free: 7.621 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.442e-05/0.3214, allocations: 33.25 kB / 383.9 MB, free: 7.605 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.663e-05/0.3215, allocations: 39.38 kB / 384 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.3216, allocations: 2.062 kB / 384 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.3216, allocations: 3.562 kB / 384 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.3216, allocations: 2.031 kB / 384 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002972/0.3219, allocations: 297 kB / 384.3 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.3219, allocations: 0.9375 kB / 384.3 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.252e-05/0.3219, allocations: 15.16 kB / 384.3 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.322, allocations: 6.484 kB / 384.3 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.322, allocations: 7.812 kB / 384.3 MB, free: 7.395 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.322, allocations: 1.281 kB / 384.3 MB, free: 7.395 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.322, allocations: 0 / 384.3 MB, free: 7.395 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004023/0.3224, allocations: 200.8 kB / 384.5 MB, free: 7.312 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.496e-05/0.3225, allocations: 110.5 kB / 384.6 MB, free: 7.199 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.897e-05/0.3225, allocations: 13.89 kB / 384.6 MB, free: 7.191 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.467e-05/0.3226, allocations: 13.33 kB / 384.6 MB, free: 7.191 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.438e-05/0.3227, allocations: 13.73 kB / 384.6 MB, free: 7.191 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.242e-05/0.3227, allocations: 7.812 kB / 384.7 MB, free: 7.191 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003483/0.3231, allocations: 311.9 kB / 385 MB, free: 7.109 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3231, allocations: 0 / 385 MB, free: 7.109 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003511/0.3235, allocations: 53.64 kB / 385 MB, free: 7.105 MB / 318.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,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * 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.00198/0.3254, allocations: 1.059 MB / 386.1 MB, free: 6.27 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003452/0.3258, allocations: 120.2 kB / 386.2 MB, free: 6.266 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3258, allocations: 0 / 386.2 MB, free: 6.266 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.326, allocations: 62.2 kB / 386.2 MB, free: 6.266 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004499/0.3264, allocations: 84.02 kB / 386.3 MB, free: 6.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003674/0.3301, allocations: 2.811 MB / 389.1 MB, free: 4.766 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.3304, allocations: 0.7777 MB / 389.9 MB, free: 4.059 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002005/0.3307, allocations: 49.69 kB / 390 MB, free: 4.047 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001633/0.3308, allocations: 95.09 kB / 390.1 MB, free: 3.98 MB / 318.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3308, allocations: 0 / 390.1 MB, free: 3.98 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03407/0.3649, allocations: 7.185 MB / 397.2 MB, free: 2.539 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.226/8.591, allocations: 12.92 kB / 397.3 MB, free: 2.527 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches