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.0009722/0.0009722, allocations: 103.8 kB / 17.16 MB, free: 6.316 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.0009454/0.0009455, allocations: 190 kB / 18.07 MB, free: 5.414 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.198/1.198, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001219/0.001219, allocations: 59.92 kB / 280.1 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07805/0.07928, allocations: 46.61 MB / 326.7 MB, free: 4.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00328/0.08261, allocations: 2.043 MB / 328.7 MB, free: 2.75 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.08425, allocations: 1.038 MB / 329.8 MB, free: 1.703 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001593/0.08443, allocations: 4 kB / 329.8 MB, free: 1.699 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007993/0.08526, allocations: 287.3 kB / 330 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004001/0.08567, allocations: 183.5 kB / 330.2 MB, free: 1.238 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005785/0.08626, allocations: 251.6 kB / 330.5 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003766/0.08664, allocations: 339.1 kB / 330.8 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.08678, allocations: 60.36 kB / 330.9 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002066/0.087, allocations: 131.3 kB / 331 MB, free: 484 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001797/0.08719, allocations: 131.5 kB / 331.1 MB, free: 352 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.502e-05/0.08723, allocations: 11.94 kB / 331.1 MB, free: 340 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001596/0.08739, allocations: 67.91 kB / 331.2 MB, free: 272 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.786e-05/0.08749, allocations: 71.8 kB / 331.3 MB, free: 200 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.08761, allocations: 123.2 kB / 331.4 MB, free: 76 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000389/0.088, allocations: 331.2 kB / 331.7 MB, free: 15.75 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.08802, allocations: 0 / 331.7 MB, free: 15.75 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.08803, allocations: 0 / 331.7 MB, free: 15.75 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.305e-06/0.08804, allocations: 4 kB / 331.7 MB, free: 15.75 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008827/0.08893, allocations: 0.6611 MB / 332.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.08898, allocations: 8.031 kB / 332.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.01e-05/0.08904, allocations: 46.69 kB / 332.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.162e-05/0.08912, allocations: 36.55 kB / 332.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003694/0.08949, allocations: 324 kB / 332.8 MB, free: 14.57 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/0.08952, allocations: 4.375 kB / 332.8 MB, free: 14.57 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.056e-05/0.08955, allocations: 19.88 kB / 332.8 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000286/0.08984, allocations: 156 kB / 333 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.08987, allocations: 0 / 333 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.47e-05/0.0899, allocations: 7.938 kB / 333 MB, free: 14.37 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.08992, allocations: 4 kB / 333 MB, free: 14.37 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.0901, allocations: 71.81 kB / 333 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008137/0.09092, allocations: 496.3 kB / 333.5 MB, free: 13.76 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003057/0.09124, allocations: 138.7 kB / 333.7 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.09137, allocations: 48.84 kB / 333.7 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.0914, allocations: 3.984 kB / 333.7 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002184/0.09162, allocations: 115.3 kB / 333.8 MB, free: 13.44 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.412e-06/0.09163, allocations: 0 / 333.8 MB, free: 13.44 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005043/0.09214, allocations: 213.1 kB / 334 MB, free: 13.22 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.401e-05/0.09222, allocations: 114.8 kB / 334.1 MB, free: 13.09 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004286/0.09266, allocations: 424.5 kB / 334.6 MB, free: 12.66 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.303e-05/0.09269, allocations: 33.7 kB / 334.6 MB, free: 12.62 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.09282, allocations: 171.9 kB / 334.8 MB, free: 12.45 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.661e-05/0.09288, allocations: 31.55 kB / 334.8 MB, free: 12.42 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.574e-05/0.09296, allocations: 49.7 kB / 334.8 MB, free: 12.36 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.09309, allocations: 342.8 kB / 335.2 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.09321, allocations: 43.98 kB / 335.2 MB, free: 11.98 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001556/0.09337, allocations: 101.9 kB / 335.3 MB, free: 11.86 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001945/0.09357, allocations: 111.6 kB / 335.4 MB, free: 11.74 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.09359, allocations: 4 kB / 335.4 MB, free: 11.73 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003021/0.0939, allocations: 174.1 kB / 335.6 MB, free: 11.56 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.09392, allocations: 7.938 kB / 335.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.09393, allocations: 0 / 335.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.09395, allocations: 4 kB / 335.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.09406, allocations: 23.92 kB / 335.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.09408, allocations: 4 kB / 335.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.0942, allocations: 19.84 kB / 335.7 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.09422, allocations: 12.05 kB / 335.7 MB, free: 11.49 MB / 286.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.0001401/0.09437, allocations: 163.6 kB / 335.8 MB, free: 11.32 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.744e-05/0.09442, allocations: 39.59 kB / 335.9 MB, free: 11.28 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.714e-05/0.09449, allocations: 38.88 kB / 335.9 MB, free: 11.24 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.0945, allocations: 0 / 335.9 MB, free: 11.24 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.09451, allocations: 3.984 kB / 335.9 MB, free: 11.23 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.09452, allocations: 0 / 335.9 MB, free: 11.23 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002593/0.09478, allocations: 305.4 kB / 336.2 MB, free: 10.89 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.0948, allocations: 0 / 336.2 MB, free: 10.89 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.003e-05/0.09484, allocations: 12 kB / 336.2 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.09486, allocations: 3.938 kB / 336.2 MB, free: 10.87 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.09487, allocations: 4 kB / 336.2 MB, free: 10.87 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.09488, allocations: 3.938 kB / 336.2 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.09489, allocations: 0 / 336.2 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000322/0.09521, allocations: 198.5 kB / 336.4 MB, free: 10.65 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.63e-05/0.0953, allocations: 116.6 kB / 336.5 MB, free: 10.52 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.133e-05/0.09535, allocations: 12 kB / 336.6 MB, free: 10.51 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.253e-05/0.09544, allocations: 7.984 kB / 336.6 MB, free: 10.5 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.115e-05/0.09549, allocations: 15.92 kB / 336.6 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.642e-05/0.09552, allocations: 8 kB / 336.6 MB, free: 10.48 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003334/0.09585, allocations: 315 kB / 336.9 MB, free: 10.17 MB / 286.1 MB Notification: Performance of sort global known variables: time 2e-07/0.09586, allocations: 0 / 336.9 MB, free: 10.17 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002735/0.09614, allocations: 48 kB / 336.9 MB, free: 10.12 MB / 286.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.001492/0.09764, allocations: 1.061 MB / 338 MB, free: 9.047 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002865/0.09794, allocations: 119.9 kB / 338.1 MB, free: 8.93 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.09795, allocations: 3.938 kB / 338.1 MB, free: 8.926 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001231/0.09808, allocations: 59.97 kB / 338.2 MB, free: 8.867 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003969/0.09849, allocations: 65.52 kB / 338.2 MB, free: 8.801 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003436/0.1019, allocations: 2.897 MB / 341.1 MB, free: 5.816 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003824/0.1023, allocations: 0.7752 MB / 341.9 MB, free: 5.016 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001353/0.1025, allocations: 46.25 kB / 342 MB, free: 4.969 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001468/0.1026, allocations: 95.39 kB / 342.1 MB, free: 4.875 MB / 286.1 MB Notification: Performance of SimCode: time 5.82e-07/0.1026, allocations: 4 kB / 342.1 MB, free: 4.871 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.44/1.543, allocations: 6.734 MB / 348.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002064/1.543, allocations: 224.6 kB / 349 MB, free: 13.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.81/3.353, allocations: 7.938 kB / 349 MB, free: 13.84 MB / 302.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","../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches