Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001202/0.001202, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.204/1.204, allocations: 205.1 MB / 223.7 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009145/0.0009145, allocations: 98.22 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007615/0.0007616, allocations: 39.94 kB / 327.2 MB, free: 332 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1858/0.1866, allocations: 46.62 MB / 373.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004443/0.1911, allocations: 4.062 MB / 377.9 MB, free: 42.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001918/0.193, allocations: 1.12 MB / 379 MB, free: 41.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004959/0.1936, allocations: 8.969 kB / 379 MB, free: 41.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002705/0.1939, allocations: 68.64 kB / 379.1 MB, free: 41.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000455/0.1944, allocations: 139.9 kB / 379.2 MB, free: 41.49 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005075/0.1949, allocations: 250.4 kB / 379.5 MB, free: 41.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008867/0.1958, allocations: 0.8986 MB / 380.4 MB, free: 40.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003452/0.1961, allocations: 233.6 kB / 380.6 MB, free: 40.6 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000453/0.1966, allocations: 323.2 kB / 380.9 MB, free: 40.41 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004927/0.1971, allocations: 397.9 kB / 381.3 MB, free: 40.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000158/0.1973, allocations: 61.09 kB / 381.3 MB, free: 40.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001698/0.1974, allocations: 56.69 kB / 381.4 MB, free: 40.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001219/0.1976, allocations: 158.9 kB / 381.6 MB, free: 39.99 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003744/0.1979, allocations: 362.7 kB / 381.9 MB, free: 39.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006873/0.1986, allocations: 1.077 MB / 383 MB, free: 38.87 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1986, allocations: 1.125 kB / 383 MB, free: 38.87 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1987, allocations: 0 / 383 MB, free: 38.87 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.1987, allocations: 0 / 383 MB, free: 38.87 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002394/0.2011, allocations: 1.19 MB / 384.2 MB, free: 37.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.2011, allocations: 13.28 kB / 384.2 MB, free: 37.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.2013, allocations: 74.12 kB / 384.3 MB, free: 37.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004098/0.2017, allocations: 435.2 kB / 384.7 MB, free: 37.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.75e-05/0.2017, allocations: 45.31 kB / 384.7 MB, free: 37.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.121e-05/0.2018, allocations: 51.78 kB / 384.8 MB, free: 37.47 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001779/0.2036, allocations: 0.9327 MB / 385.7 MB, free: 36.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.2036, allocations: 1.062 kB / 385.7 MB, free: 36.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.853e-05/0.2037, allocations: 26.52 kB / 385.7 MB, free: 36.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.2037, allocations: 16.78 kB / 385.8 MB, free: 36.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002532/0.2062, allocations: 0.9744 MB / 386.7 MB, free: 36.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003233/0.2095, allocations: 3.063 MB / 389.8 MB, free: 33.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001919/0.2114, allocations: 0.9133 MB / 390.7 MB, free: 32.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009819/0.2124, allocations: 437.9 kB / 391.1 MB, free: 31.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.194e-05/0.2125, allocations: 16.36 kB / 391.2 MB, free: 31.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001004/0.2135, allocations: 461.1 kB / 391.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 2.375e-06/0.2135, allocations: 0 / 391.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.002662/0.2162, allocations: 1.084 MB / 392.7 MB, free: 30.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.672e-05/0.2162, allocations: 273.3 kB / 393 MB, free: 29.92 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005014/0.2167, allocations: 0.5057 MB / 393.5 MB, free: 29.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.931e-05/0.2168, allocations: 37.7 kB / 393.5 MB, free: 29.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.2169, allocations: 335.6 kB / 393.8 MB, free: 29.03 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.259e-05/0.217, allocations: 169.6 kB / 394 MB, free: 28.86 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002003/0.2172, allocations: 142.5 kB / 394.1 MB, free: 28.72 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.302e-05/0.2173, allocations: 370.7 kB / 394.5 MB, free: 28.35 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/0.2183, allocations: 401.7 kB / 394.9 MB, free: 27.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001108/0.2195, allocations: 0.6534 MB / 395.5 MB, free: 27.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001879/0.2214, allocations: 0.9662 MB / 396.5 MB, free: 26.13 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.2214, allocations: 0 / 396.5 MB, free: 26.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002364/0.2237, allocations: 1.122 MB / 397.6 MB, free: 24.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.393e-05/0.2238, allocations: 67.39 kB / 397.7 MB, free: 24.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.2238, allocations: 8 kB / 397.7 MB, free: 24.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.2238, allocations: 12.34 kB / 397.7 MB, free: 24.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008944/0.2247, allocations: 227.6 kB / 397.9 MB, free: 24.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.2247, allocations: 15.92 kB / 398 MB, free: 24.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009262/0.2257, allocations: 171.1 kB / 398.1 MB, free: 24.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.596e-05/0.2257, allocations: 35.98 kB / 398.2 MB, free: 24.45 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 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002084/0.226, allocations: 213.7 kB / 398.4 MB, free: 24.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.097e-05/0.226, allocations: 59.28 kB / 398.4 MB, free: 24.17 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001229/0.2262, allocations: 65.56 kB / 398.5 MB, free: 24.11 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.2262, allocations: 7.938 kB / 398.5 MB, free: 24.1 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.2262, allocations: 0 / 398.5 MB, free: 24.1 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.2262, allocations: 7.984 kB / 398.5 MB, free: 24.09 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002672/0.2289, allocations: 1.642 MB / 400.1 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.2289, allocations: 4 kB / 400.1 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006822/0.2296, allocations: 151.7 kB / 400.3 MB, free: 22.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.2296, allocations: 0 / 400.3 MB, free: 22.24 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.071e-05/0.2296, allocations: 15.98 kB / 400.3 MB, free: 22.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.2296, allocations: 4 kB / 400.3 MB, free: 22.22 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2297, allocations: 4 kB / 400.3 MB, free: 22.22 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01304/0.2427, allocations: 6.21 MB / 406.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.418e-05/0.2428, allocations: 144.4 kB / 406.7 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.697e-05/0.2429, allocations: 12 kB / 406.7 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000682/0.2436, allocations: 107.8 kB / 406.8 MB, free: 15.58 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.2437, allocations: 56.36 kB / 406.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.69e-05/0.2437, allocations: 12 kB / 406.9 MB, free: 15.51 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003706/0.2441, allocations: 354.8 kB / 407.2 MB, free: 15.17 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2441, allocations: 0 / 407.2 MB, free: 15.17 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006371/0.2448, allocations: 235.6 kB / 407.4 MB, free: 14.94 MB / 298.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 (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.0001285/0.2449, allocations: 115.2 kB / 407.5 MB, free: 14.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002089/0.247, allocations: 1.001 MB / 408.5 MB, free: 13.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.247, allocations: 0 / 408.5 MB, free: 13.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009424/0.248, allocations: 411.1 kB / 408.9 MB, free: 13.39 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005273/0.2485, allocations: 97.09 kB / 409 MB, free: 13.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002155/0.2507, allocations: 1.716 MB / 410.8 MB, free: 11.54 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002185/0.2509, allocations: 0.871 MB / 411.6 MB, free: 10.64 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004484/0.2514, allocations: 84.66 kB / 411.7 MB, free: 10.56 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002491/0.2516, allocations: 47.42 kB / 411.8 MB, free: 10.51 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.2516, allocations: 4 kB / 411.8 MB, free: 10.51 MB / 298.7 MB Notification: Performance of Templates: time 0.0124/0.264, allocations: 10.07 MB / 421.8 MB, free: 480 kB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches