Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_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.001033/0.001033, allocations: 100.6 kB / 16.5 MB, free: 6.688 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.00102/0.00102, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.328/1.328, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009539/0.0009539, allocations: 46.86 kB / 300.1 MB, free: 6.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08851/0.08948, allocations: 49.45 MB / 349.5 MB, free: 4.777 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003311/0.09282, allocations: 2.051 MB / 351.6 MB, free: 2.699 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001781/0.09463, allocations: 1.122 MB / 352.7 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001377/0.09479, allocations: 4 kB / 352.7 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007868/0.09558, allocations: 288.7 kB / 353 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004077/0.096, allocations: 187.5 kB / 353.1 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006422/0.09665, allocations: 267.3 kB / 353.4 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003546/0.09701, allocations: 335.1 kB / 353.7 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.09717, allocations: 60.36 kB / 353.8 MB, free: 472 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001942/0.09737, allocations: 127.4 kB / 353.9 MB, free: 344 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001875/0.09757, allocations: 139.4 kB / 354.1 MB, free: 204 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.448e-05/0.09761, allocations: 8 kB / 354.1 MB, free: 196 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001571/0.09777, allocations: 67.97 kB / 354.1 MB, free: 128 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.09788, allocations: 75.67 kB / 354.2 MB, free: 52 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001312/0.09802, allocations: 115.3 kB / 354.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003629/0.09839, allocations: 335 kB / 354.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.0984, allocations: 0 / 354.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.09841, allocations: 0 / 354.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.09842, allocations: 0 / 354.6 MB, free: 15.61 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0009074/0.09933, allocations: 0.6649 MB / 355.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.09938, allocations: 12.03 kB / 355.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.452e-05/0.09943, allocations: 46.69 kB / 355.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.391e-05/0.09951, allocations: 36.55 kB / 355.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003906/0.09991, allocations: 327.7 kB / 355.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.09993, allocations: 8 kB / 355.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.296e-05/0.09996, allocations: 12 kB / 355.7 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002742/0.1002, allocations: 148 kB / 355.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.1003, allocations: 0 / 355.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/0.1003, allocations: 8 kB / 355.9 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.1003, allocations: 4 kB / 355.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001775/0.1005, allocations: 71.89 kB / 356 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006553/0.1011, allocations: 496.3 kB / 356.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003234/0.1015, allocations: 130.8 kB / 356.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.1016, allocations: 48.84 kB / 356.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.1016, allocations: 7.922 kB / 356.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000222/0.1019, allocations: 119.3 kB / 356.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.1019, allocations: 0 / 356.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004849/0.1024, allocations: 212.7 kB / 357 MB, free: 13.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.852e-05/0.1024, allocations: 114.7 kB / 357.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004392/0.1029, allocations: 424.5 kB / 357.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.286e-05/0.1029, allocations: 29.7 kB / 357.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.103, allocations: 175.9 kB / 357.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.568e-05/0.1031, allocations: 31.55 kB / 357.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.086e-05/0.1031, allocations: 45.7 kB / 357.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.1033, allocations: 346.8 kB / 358.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.1034, allocations: 43.88 kB / 358.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001466/0.1036, allocations: 106 kB / 358.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002038/0.1038, allocations: 102.5 kB / 358.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1038, allocations: 3.938 kB / 358.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003303/0.1041, allocations: 177.2 kB / 358.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.1041, allocations: 4 kB / 358.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.1041, allocations: 4.062 kB / 358.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.1042, allocations: 4 kB / 358.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.1043, allocations: 23.98 kB / 358.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.1043, allocations: 4 kB / 358.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.886e-05/0.1044, allocations: 15.84 kB / 358.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.484e-05/0.1044, allocations: 11.98 kB / 358.6 MB, free: 11.36 MB / 302.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.0001581/0.1046, allocations: 163.6 kB / 358.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.862e-05/0.1046, allocations: 39.55 kB / 358.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.255e-05/0.1047, allocations: 38.94 kB / 358.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.1047, allocations: 0 / 358.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.1047, allocations: 7.922 kB / 358.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1047, allocations: 4 kB / 358.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002456/0.105, allocations: 301.4 kB / 359.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.105, allocations: 0 / 359.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.547e-05/0.105, allocations: 8 kB / 359.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-06/0.105, allocations: 0 / 359.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.936e-05/0.1051, allocations: 4 kB / 359.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.1051, allocations: 0 / 359.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.1051, allocations: 7.938 kB / 359.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003301/0.1054, allocations: 207.5 kB / 359.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.456e-05/0.1055, allocations: 112.7 kB / 359.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.313e-05/0.1056, allocations: 4 kB / 359.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.602e-05/0.1056, allocations: 11.98 kB / 359.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.072e-05/0.1057, allocations: 11.92 kB / 359.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.1057, allocations: 12 kB / 359.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003177/0.1061, allocations: 315 kB / 359.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1061, allocations: 0 / 359.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002846/0.1063, allocations: 52 kB / 359.9 MB, free: 10 MB / 302.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.001426/0.1078, allocations: 1.061 MB / 360.9 MB, free: 9.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002864/0.1081, allocations: 119.8 kB / 361 MB, free: 8.953 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1081, allocations: 0 / 361 MB, free: 8.953 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001283/0.1082, allocations: 63.91 kB / 361.1 MB, free: 8.891 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000413/0.1086, allocations: 72.11 kB / 361.2 MB, free: 8.824 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003481/0.1121, allocations: 2.901 MB / 364.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003246/0.1125, allocations: 0.7713 MB / 364.8 MB, free: 5.035 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001381/0.1126, allocations: 50.25 kB / 364.9 MB, free: 4.988 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.1128, allocations: 91.39 kB / 365 MB, free: 4.898 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1128, allocations: 0 / 365 MB, free: 4.898 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1635/0.2763, allocations: 6.717 MB / 371.7 MB, free: 25.52 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001805/0.2765, allocations: 229.9 kB / 371.9 MB, free: 25.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.941/2.217, allocations: 3.562 kB / 371.9 MB, free: 25.27 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches