Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate.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.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001016/0.001016, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 226.5 MB / 244.7 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007261/0.0007261, allocations: 96.56 kB / 296.8 MB, free: 6.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002174/0.0002174, allocations: 8 kB / 356.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1826/0.1828, allocations: 51.3 MB / 408 MB, free: 27.76 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.002669/0.1856, allocations: 3.654 MB / 411.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00153/0.1871, allocations: 1.165 MB / 412.9 MB, free: 22.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002607/0.1874, allocations: 11.94 kB / 412.9 MB, free: 22.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000159/0.1876, allocations: 71.39 kB / 412.9 MB, free: 22.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002792/0.1879, allocations: 155.8 kB / 413.1 MB, free: 22.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004262/0.1883, allocations: 183.8 kB / 413.3 MB, free: 22.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005887/0.1889, allocations: 0.9566 MB / 414.2 MB, free: 21.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002799/0.1892, allocations: 239.5 kB / 414.5 MB, free: 21.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002226/0.1894, allocations: 318.9 kB / 414.8 MB, free: 21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002883/0.1897, allocations: 390.4 kB / 415.2 MB, free: 20.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.791e-05/0.1898, allocations: 48 kB / 415.2 MB, free: 20.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.84e-05/0.1899, allocations: 48 kB / 415.3 MB, free: 20.53 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.026e-05/0.19, allocations: 151.4 kB / 415.4 MB, free: 20.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002302/0.1902, allocations: 380 kB / 415.8 MB, free: 20 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004973/0.1907, allocations: 0.9242 MB / 416.7 MB, free: 19.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1907, allocations: 3.938 kB / 416.7 MB, free: 19.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1907, allocations: 0 / 416.7 MB, free: 19.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.1907, allocations: 0 / 416.7 MB, free: 19.07 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: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.002161/0.1929, allocations: 1.212 MB / 417.9 MB, free: 17.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.193, allocations: 12.03 kB / 417.9 MB, free: 17.78 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/0.1931, allocations: 84 kB / 418 MB, free: 17.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004239/0.1935, allocations: 465.6 kB / 418.5 MB, free: 17.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.859e-05/0.1936, allocations: 49.62 kB / 418.5 MB, free: 17.16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.598e-05/0.1937, allocations: 60.38 kB / 418.6 MB, free: 17.1 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001882/0.1955, allocations: 1.039 MB / 419.6 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.1956, allocations: 3.938 kB / 419.6 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.689e-05/0.1956, allocations: 28 kB / 419.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.1957, allocations: 16 kB / 419.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002529/0.1982, allocations: 1.155 MB / 420.8 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003753/0.202, allocations: 3.293 MB / 424.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001968/0.204, allocations: 1.029 MB / 425.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001003/0.205, allocations: 0.49 MB / 425.6 MB, free: 9.793 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.648e-05/0.205, allocations: 16.41 kB / 425.6 MB, free: 9.777 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001036/0.2061, allocations: 0.5089 MB / 426.1 MB, free: 9.258 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 2.615e-06/0.2061, allocations: 0 / 426.1 MB, free: 9.258 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.002782/0.2089, allocations: 1.271 MB / 427.4 MB, free: 7.977 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.743e-05/0.209, allocations: 368.3 kB / 427.8 MB, free: 7.531 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005844/0.2095, allocations: 0.577 MB / 428.4 MB, free: 6.945 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.102e-05/0.2096, allocations: 37.7 kB / 428.4 MB, free: 6.902 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001575/0.2098, allocations: 367.6 kB / 428.7 MB, free: 6.535 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.479e-05/0.2099, allocations: 165.6 kB / 428.9 MB, free: 6.371 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.687e-05/0.2099, allocations: 20 kB / 428.9 MB, free: 6.352 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.282e-05/0.21, allocations: 378.7 kB / 429.3 MB, free: 5.973 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/0.2111, allocations: 461.7 kB / 429.8 MB, free: 5.523 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001123/0.2122, allocations: 0.728 MB / 430.5 MB, free: 4.672 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001911/0.2142, allocations: 1.079 MB / 431.6 MB, free: 3.496 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.2142, allocations: 7.938 kB / 431.6 MB, free: 3.488 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00244/0.2166, allocations: 1.251 MB / 432.8 MB, free: 2.219 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.535e-05/0.2167, allocations: 59.41 kB / 432.9 MB, free: 2.148 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.2167, allocations: 8 kB / 432.9 MB, free: 2.141 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.2167, allocations: 8 kB / 432.9 MB, free: 2.133 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009298/0.2176, allocations: 259.9 kB / 433.1 MB, free: 1.879 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.334e-05/0.2177, allocations: 11.94 kB / 433.2 MB, free: 1.867 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009417/0.2186, allocations: 219 kB / 433.4 MB, free: 1.652 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.119e-05/0.2187, allocations: 39.98 kB / 433.4 MB, free: 1.613 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * 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.0002461/0.2189, allocations: 225.5 kB / 433.6 MB, free: 1.383 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.774e-05/0.219, allocations: 67.16 kB / 433.7 MB, free: 1.316 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001258/0.2192, allocations: 74.41 kB / 433.8 MB, free: 1.246 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.2192, allocations: 4 kB / 433.8 MB, free: 1.242 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.2192, allocations: 0 / 433.8 MB, free: 1.242 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.2192, allocations: 3.984 kB / 433.8 MB, free: 1.238 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002874/0.2221, allocations: 1.794 MB / 435.6 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.2221, allocations: 0 / 435.6 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007702/0.2229, allocations: 175.8 kB / 435.7 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/0.2229, allocations: 3.984 kB / 435.7 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.749e-05/0.2229, allocations: 19.98 kB / 435.8 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.2229, allocations: 8 kB / 435.8 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2229, allocations: 0 / 435.8 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003173/0.2261, allocations: 1.47 MB / 437.2 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/0.2263, allocations: 144.3 kB / 437.4 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.527e-05/0.2264, allocations: 12 kB / 437.4 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000755/0.2271, allocations: 147.9 kB / 437.5 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.2273, allocations: 56.23 kB / 437.6 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.182e-05/0.2273, allocations: 16 kB / 437.6 MB, free: 13.31 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005183/0.2278, allocations: 394.8 kB / 438 MB, free: 12.93 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2279, allocations: 4 kB / 438 MB, free: 12.92 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005557/0.2284, allocations: 179.7 kB / 438.2 MB, free: 12.75 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * 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.000148/0.2286, allocations: 115.2 kB / 438.3 MB, free: 12.62 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002448/0.231, allocations: 1.11 MB / 439.4 MB, free: 11.49 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.231, allocations: 3.938 kB / 439.4 MB, free: 11.48 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001043/0.2321, allocations: 462.8 kB / 439.9 MB, free: 11.04 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005964/0.2327, allocations: 97.06 kB / 439.9 MB, free: 10.94 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002293/0.235, allocations: 1.547 MB / 441.5 MB, free: 9.359 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.2354, allocations: 0.8821 MB / 442.4 MB, free: 8.449 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002975/0.2357, allocations: 59.42 kB / 442.4 MB, free: 8.391 MB / 314.7 MB Notification: Performance of SimCode: time 3.5e-07/0.2357, allocations: 0 / 442.4 MB, free: 8.391 MB / 314.7 MB Notification: Performance of Templates: time 0.01162/0.2473, allocations: 9.207 MB / 451.6 MB, free: 15.22 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches