Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand.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.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001671/0.001671, allocations: 177.3 kB / 17.41 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.403/2.403, allocations: 205.4 MB / 223.6 MB, free: 9.039 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.0006827/0.0006827, allocations: 89.42 kB / 271.9 MB, free: 8.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003421/0.0003421, allocations: 8 kB / 328.1 MB, free: 15.96 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2397, allocations: 47.57 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1065/0.3462, allocations: 102.2 MB / 478 MB, free: 10.37 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002188/0.3464, allocations: 75.97 kB / 478 MB, free: 10.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3344/0.6809, allocations: 121.3 MB / 0.5852 GB, free: 29.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.6809, allocations: 0 / 0.5852 GB, free: 29.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.668e-05/0.6809, allocations: 44 kB / 0.5853 GB, free: 29.12 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.003907/0.6849, allocations: 3.215 MB / 0.5884 GB, free: 25.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.471e-05/0.6849, allocations: 12.03 kB / 0.5884 GB, free: 25.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003883/0.6853, allocations: 380.9 kB / 0.5888 GB, free: 25.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005922/0.6913, allocations: 2.435 MB / 0.5912 GB, free: 22.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.6915, allocations: 37 kB / 0.5912 GB, free: 22.9 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003998/0.6919, allocations: 51.89 kB / 0.5913 GB, free: 22.85 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003277/0.6952, allocations: 0.8261 MB / 0.5921 GB, free: 21.99 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.103e-05/0.6953, allocations: 7.984 kB / 0.5921 GB, free: 21.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001252/0.6954, allocations: 24 kB / 0.5921 GB, free: 21.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-05/0.6955, allocations: 19.98 kB / 0.5921 GB, free: 21.94 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00214/0.6976, allocations: 0.8281 MB / 0.5929 GB, free: 21.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006512/0.7042, allocations: 2.919 MB / 0.5958 GB, free: 18.13 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/0.7053, allocations: 0.7289 MB / 0.5965 GB, free: 17.37 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008126/0.7061, allocations: 0.6761 MB / 0.5971 GB, free: 16.69 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03205/0.7382, allocations: 35.68 MB / 0.632 GB, free: 7.871 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007939/0.739, allocations: 385.5 kB / 0.6324 GB, free: 7.484 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.556e-06/0.739, allocations: 0 / 0.6324 GB, free: 7.484 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.003277/0.7423, allocations: 1.466 MB / 0.6338 GB, free: 5.984 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001421/0.7425, allocations: 277 kB / 0.6341 GB, free: 5.652 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003467/0.7459, allocations: 2.781 MB / 0.6368 GB, free: 2.852 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.902e-05/0.746, allocations: 37.7 kB / 0.6368 GB, free: 2.809 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001139/0.7472, allocations: 1.395 MB / 0.6382 GB, free: 1.406 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001616/0.7473, allocations: 161.7 kB / 0.6383 GB, free: 1.246 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.062e-05/0.7474, allocations: 20 kB / 0.6383 GB, free: 1.227 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.7475, allocations: 337.9 kB / 0.6387 GB, free: 0.8906 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000604/0.7481, allocations: 253.9 kB / 0.6389 GB, free: 0.6445 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007958/0.7489, allocations: 0.6621 MB / 0.6396 GB, free: 15.79 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.7503, allocations: 0.9153 MB / 0.6404 GB, free: 14.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.7503, allocations: 4 kB / 0.6405 GB, free: 14.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002235/0.7526, allocations: 1.319 MB / 0.6417 GB, free: 13.37 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.7526, allocations: 8 kB / 0.6417 GB, free: 13.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001003/0.7527, allocations: 88.06 kB / 0.6418 GB, free: 13.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005287/0.7533, allocations: 284.8 kB / 0.6421 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005385/0.7538, allocations: 187.6 kB / 0.6423 GB, free: 12.81 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008827/0.7547, allocations: 0.871 MB / 0.6431 GB, free: 11.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001207/0.7559, allocations: 138.9 kB / 0.6433 GB, free: 11.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/0.756, allocations: 64 kB / 0.6433 GB, free: 11.72 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0009053/0.757, allocations: 423.3 kB / 0.6437 GB, free: 11.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000384/0.7573, allocations: 371.6 kB / 0.6441 GB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003061/0.7604, allocations: 1.322 MB / 0.6454 GB, free: 9.594 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.186e-06/0.7604, allocations: 4 kB / 0.6454 GB, free: 9.59 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.7604, allocations: 0 / 0.6454 GB, free: 9.59 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.7605, allocations: 7.984 kB / 0.6454 GB, free: 9.582 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003672/0.7641, allocations: 2.248 MB / 0.6476 GB, free: 7.246 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.764e-05/0.7642, allocations: 68 kB / 0.6476 GB, free: 7.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003021/0.7646, allocations: 71.88 kB / 0.6477 GB, free: 7.109 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000454/0.765, allocations: 264.9 kB / 0.648 GB, free: 6.848 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.264e-05/0.7651, allocations: 31.98 kB / 0.648 GB, free: 6.816 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008197/0.7659, allocations: 0.8724 MB / 0.6488 GB, free: 5.918 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.7659, allocations: 3.938 kB / 0.6489 GB, free: 5.914 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001862/0.7678, allocations: 1.168 MB / 0.65 GB, free: 4.707 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008299/0.7686, allocations: 468.4 kB / 0.6504 GB, free: 4.227 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002648/0.7689, allocations: 16 kB / 0.6505 GB, free: 4.211 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006399/0.7696, allocations: 51.89 kB / 0.6505 GB, free: 4.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/0.7697, allocations: 63.94 kB / 0.6506 GB, free: 4.098 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.199e-05/0.7698, allocations: 36 kB / 0.6506 GB, free: 4.062 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002558/0.7724, allocations: 1.801 MB / 0.6524 GB, free: 2.258 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.7724, allocations: 0 / 0.6524 GB, free: 2.258 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001523/0.7739, allocations: 0.6283 MB / 0.653 GB, free: 1.629 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001245/0.7752, allocations: 0.8782 MB / 0.6538 GB, free: 0.75 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.1571/0.9322, allocations: 0.8837 MB / 0.6547 GB, free: 102 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/0.9323, allocations: 1.938 kB / 0.6547 GB, free: 102 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008578/0.9331, allocations: 0.5037 MB / 0.6552 GB, free: 101.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002363/0.9355, allocations: 459.4 kB / 0.6556 GB, free: 101.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004488/0.94, allocations: 4.511 MB / 0.66 GB, free: 99.63 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000742/0.9408, allocations: 1.605 MB / 0.6616 GB, free: 98.91 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002087/0.941, allocations: 147.7 kB / 0.6617 GB, free: 98.91 MB / 426.7 MB Notification: Performance of SimCode: time 8.01e-07/0.941, allocations: 3.938 kB / 0.6617 GB, free: 98.91 MB / 426.7 MB Notification: Performance of Templates: time 0.05362/0.9946, allocations: 46.91 MB / 0.7076 GB, free: 88.67 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches