Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001274/0.001274, allocations: 191.9 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 226.6 MB / 244.7 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007192/0.0007192, allocations: 96.33 kB / 296.8 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002239/0.0002239, allocations: 8 kB / 356.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2029/0.2031, allocations: 51.3 MB / 408 MB, free: 27.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.001888/0.2051, allocations: 1.692 MB / 409.7 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.2065, allocations: 1.201 MB / 410.9 MB, free: 24.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.462e-05/0.2066, allocations: 7.938 kB / 410.9 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006403/0.2072, allocations: 277.2 kB / 411.2 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003684/0.2076, allocations: 214.7 kB / 411.4 MB, free: 24.35 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000486/0.2081, allocations: 253.7 kB / 411.7 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002483/0.2083, allocations: 319.8 kB / 412 MB, free: 23.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.2085, allocations: 47.14 kB / 412 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.2086, allocations: 130.5 kB / 412.2 MB, free: 23.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/0.2087, allocations: 143.4 kB / 412.3 MB, free: 23.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.581e-05/0.2088, allocations: 4 kB / 412.3 MB, free: 23.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001198/0.2089, allocations: 59.97 kB / 412.4 MB, free: 23.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.401e-05/0.209, allocations: 71.73 kB / 412.4 MB, free: 23.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.549e-05/0.2091, allocations: 133 kB / 412.6 MB, free: 23.22 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002147/0.2093, allocations: 272.2 kB / 412.8 MB, free: 22.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.2093, allocations: 4 kB / 412.8 MB, free: 22.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2093, allocations: 1.938 kB / 412.8 MB, free: 22.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.2093, allocations: 0 / 412.8 MB, free: 22.95 MB / 298.7 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.0006823/0.21, allocations: 0.6185 MB / 413.4 MB, free: 22.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.2101, allocations: 12.03 kB / 413.5 MB, free: 22.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.2e-05/0.2101, allocations: 36.47 kB / 413.5 MB, free: 22.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003455/0.2105, allocations: 342.3 kB / 413.8 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.2105, allocations: 12.36 kB / 413.8 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.156e-05/0.2105, allocations: 16.12 kB / 413.9 MB, free: 21.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002405/0.2108, allocations: 141.1 kB / 414 MB, free: 21.67 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.2108, allocations: 7.984 kB / 414 MB, free: 21.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.2108, allocations: 7.984 kB / 414 MB, free: 21.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.2108, allocations: 0 / 414 MB, free: 21.65 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00014/0.211, allocations: 72.72 kB / 414.1 MB, free: 21.58 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005123/0.2115, allocations: 0.4964 MB / 414.6 MB, free: 21.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003136/0.2118, allocations: 126.8 kB / 414.7 MB, free: 20.9 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.202e-05/0.2119, allocations: 44.84 kB / 414.7 MB, free: 20.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.212, allocations: 11.98 kB / 414.8 MB, free: 20.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001812/0.2122, allocations: 107.3 kB / 414.9 MB, free: 20.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.753e-06/0.2122, allocations: 0 / 414.9 MB, free: 20.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004/0.2126, allocations: 221.1 kB / 415.1 MB, free: 20.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.993e-05/0.2126, allocations: 106.8 kB / 415.2 MB, free: 20.38 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003677/0.213, allocations: 453.6 kB / 415.6 MB, free: 19.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.213, allocations: 37.7 kB / 415.7 MB, free: 19.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.686e-05/0.2131, allocations: 160 kB / 415.8 MB, free: 19.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.029e-05/0.2131, allocations: 43.53 kB / 415.9 MB, free: 19.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.486e-06/0.2131, allocations: 4 kB / 415.9 MB, free: 19.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.833e-05/0.2132, allocations: 350.7 kB / 416.2 MB, free: 19.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.157e-05/0.2133, allocations: 43.98 kB / 416.2 MB, free: 19.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.2134, allocations: 104.4 kB / 416.4 MB, free: 19.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000162/0.2136, allocations: 106.4 kB / 416.5 MB, free: 19.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.2136, allocations: 0 / 416.5 MB, free: 19.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002479/0.2139, allocations: 177.1 kB / 416.6 MB, free: 18.87 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.2139, allocations: 12 kB / 416.6 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-06/0.2139, allocations: 0 / 416.6 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.2139, allocations: 7.938 kB / 416.6 MB, free: 18.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.214, allocations: 19.98 kB / 416.7 MB, free: 18.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.214, allocations: 8 kB / 416.7 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.684e-05/0.2141, allocations: 19.92 kB / 416.7 MB, free: 18.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.2141, allocations: 4 kB / 416.7 MB, free: 18.8 MB / 298.7 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 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,$PRE.Pre1.u,Pre1.u,Pre1.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001168/0.2143, allocations: 175.5 kB / 416.9 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.259e-05/0.2143, allocations: 35.47 kB / 416.9 MB, free: 18.58 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.739e-05/0.2144, allocations: 42.95 kB / 416.9 MB, free: 18.54 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.2144, allocations: 0 / 416.9 MB, free: 18.54 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.2144, allocations: 0 / 416.9 MB, free: 18.54 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.2144, allocations: 0 / 416.9 MB, free: 18.54 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001799/0.2146, allocations: 301.4 kB / 417.2 MB, free: 18.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.2146, allocations: 0 / 417.2 MB, free: 18.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.417e-05/0.2146, allocations: 7.984 kB / 417.2 MB, free: 18.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.2146, allocations: 7.938 kB / 417.3 MB, free: 18.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.2146, allocations: 0 / 417.3 MB, free: 18.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.2147, allocations: 4 kB / 417.3 MB, free: 18.17 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2147, allocations: 3.938 kB / 417.3 MB, free: 18.17 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002619/0.2149, allocations: 199.5 kB / 417.5 MB, free: 17.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.452e-05/0.215, allocations: 120.7 kB / 417.6 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.66e-05/0.215, allocations: 3.938 kB / 417.6 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.459e-05/0.2151, allocations: 15.98 kB / 417.6 MB, free: 17.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.877e-05/0.2152, allocations: 19.98 kB / 417.6 MB, free: 17.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.495e-05/0.2152, allocations: 7.984 kB / 417.6 MB, free: 17.77 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002537/0.2155, allocations: 327.1 kB / 417.9 MB, free: 17.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2155, allocations: 0 / 417.9 MB, free: 17.46 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002681/0.2157, allocations: 51.91 kB / 418 MB, free: 17.41 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007854/0.2165, allocations: 437.2 kB / 418.4 MB, free: 17.11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002428/0.2168, allocations: 123.9 kB / 418.5 MB, free: 16.99 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.2168, allocations: 0 / 418.5 MB, free: 16.99 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001054/0.2169, allocations: 59.36 kB / 418.6 MB, free: 16.94 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003551/0.2173, allocations: 77.17 kB / 418.7 MB, free: 16.86 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006078/0.2179, allocations: 0.5677 MB / 419.2 MB, free: 16.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001672/0.2181, allocations: 0.7872 MB / 420 MB, free: 15.45 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.935e-05/0.2181, allocations: 27.44 kB / 420.1 MB, free: 15.43 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2181, allocations: 0 / 420.1 MB, free: 15.43 MB / 298.7 MB Notification: Performance of Templates: time 0.004629/0.2228, allocations: 4.208 MB / 424.3 MB, free: 11.22 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches