Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand.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.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001589/0.001589, allocations: 199.8 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 226.6 MB / 244.7 MB, free: 6.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007576/0.0007576, allocations: 96.45 kB / 296.8 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002264/0.0002265, allocations: 12 kB / 356.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.199/0.1993, allocations: 51.31 MB / 408 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.007095/0.2064, allocations: 12.41 MB / 420.5 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01563/0.2221, allocations: 18.51 MB / 439 MB, free: 12.67 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001746/0.2238, allocations: 67.44 kB / 439 MB, free: 12.61 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003375/0.2272, allocations: 0.8672 MB / 439.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006678/0.234, allocations: 1.817 MB / 441.7 MB, free: 9.906 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003965/0.238, allocations: 1.104 MB / 442.8 MB, free: 8.797 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00959/0.2476, allocations: 6.039 MB / 448.9 MB, free: 2.742 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00103/0.2487, allocations: 404.8 kB / 449.3 MB, free: 2.312 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001518/0.2502, allocations: 0.9173 MB / 450.2 MB, free: 1.391 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001234/0.2515, allocations: 0.9629 MB / 451.1 MB, free: 432 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000182/0.2516, allocations: 40 kB / 451.2 MB, free: 392 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003878/0.2555, allocations: 1.338 MB / 452.5 MB, free: 15.04 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004183/0.256, allocations: 266 kB / 452.8 MB, free: 14.78 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001726/0.2577, allocations: 1.221 MB / 454 MB, free: 13.55 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002711/0.2604, allocations: 2.594 MB / 456.6 MB, free: 10.94 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.2605, allocations: 4 kB / 456.6 MB, free: 10.94 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2605, allocations: 0 / 456.6 MB, free: 10.94 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.12e-05/0.2605, allocations: 0 / 456.6 MB, free: 10.94 MB / 330.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.004545/0.2651, allocations: 3.072 MB / 459.7 MB, free: 7.793 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.2651, allocations: 15.91 kB / 459.7 MB, free: 7.777 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003766/0.2655, allocations: 371.5 kB / 460 MB, free: 7.41 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003668/0.2692, allocations: 2.524 MB / 462.6 MB, free: 4.809 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.83e-05/0.2693, allocations: 36.94 kB / 462.6 MB, free: 4.773 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.2694, allocations: 51.91 kB / 462.7 MB, free: 4.723 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/0.2707, allocations: 0.7148 MB / 463.4 MB, free: 4.004 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.2707, allocations: 0 / 463.4 MB, free: 4.004 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.828e-05/0.2708, allocations: 20 kB / 463.4 MB, free: 3.984 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.388e-05/0.2708, allocations: 19.98 kB / 463.4 MB, free: 3.965 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001474/0.2723, allocations: 0.8319 MB / 464.2 MB, free: 3.133 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004743/0.277, allocations: 2.903 MB / 467.1 MB, free: 160 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001235/0.2783, allocations: 0.7439 MB / 467.9 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000965/0.2793, allocations: 0.6705 MB / 468.6 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02818/0.3075, allocations: 30.75 MB / 499.3 MB, free: 11.72 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007382/0.3083, allocations: 377.7 kB / 499.7 MB, free: 11.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.816e-06/0.3083, allocations: 0 / 499.7 MB, free: 11.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.003105/0.3114, allocations: 1.442 MB / 0.4894 GB, free: 9.871 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/0.3115, allocations: 75.33 kB / 0.4894 GB, free: 9.785 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00327/0.3147, allocations: 2.76 MB / 0.4921 GB, free: 7.004 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.781e-05/0.3148, allocations: 33.7 kB / 0.4922 GB, free: 6.965 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00111/0.3159, allocations: 1.387 MB / 0.4935 GB, free: 5.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001591/0.3161, allocations: 165.7 kB / 0.4937 GB, free: 5.406 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.767e-05/0.3162, allocations: 20 kB / 0.4937 GB, free: 5.387 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.3163, allocations: 330 kB / 0.494 GB, free: 5.059 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005757/0.3169, allocations: 265.8 kB / 0.4943 GB, free: 4.801 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008278/0.3177, allocations: 0.6048 MB / 0.4949 GB, free: 4.027 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001453/0.3192, allocations: 0.9192 MB / 0.4958 GB, free: 2.934 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.493e-06/0.3192, allocations: 4 kB / 0.4958 GB, free: 2.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002342/0.3215, allocations: 1.307 MB / 0.497 GB, free: 1.613 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.923e-05/0.3216, allocations: 12 kB / 0.4971 GB, free: 1.602 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001095/0.3217, allocations: 83.98 kB / 0.4971 GB, free: 1.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005506/0.3223, allocations: 277.3 kB / 0.4974 GB, free: 1.246 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005523/0.3228, allocations: 179.7 kB / 0.4976 GB, free: 1.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009393/0.3238, allocations: 0.885 MB / 0.4984 GB, free: 164 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001056/0.3248, allocations: 123.1 kB / 0.4986 GB, free: 40 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.1603/0.4852, allocations: 60.77 kB / 0.4986 GB, free: 96.45 MB / 378.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.00102/0.4862, allocations: 420.9 kB / 0.499 GB, free: 96.33 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005621/0.4868, allocations: 365.6 kB / 0.4994 GB, free: 96.33 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003257/0.4901, allocations: 1.314 MB / 0.5006 GB, free: 96.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.347e-06/0.4901, allocations: 5.906 kB / 0.5006 GB, free: 96.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.4901, allocations: 0 / 0.5006 GB, free: 96.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.4901, allocations: 4.359 kB / 0.5007 GB, free: 96.19 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003301/0.4934, allocations: 2.222 MB / 0.5028 GB, free: 95.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.388e-05/0.4935, allocations: 71.8 kB / 0.5029 GB, free: 95.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003121/0.4938, allocations: 81.77 kB / 0.503 GB, free: 95.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004548/0.4943, allocations: 258.1 kB / 0.5032 GB, free: 95.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-05/0.4944, allocations: 35.42 kB / 0.5033 GB, free: 95.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007841/0.4951, allocations: 0.8658 MB / 0.5041 GB, free: 94.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.4952, allocations: 5.656 kB / 0.5041 GB, free: 94.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.4968, allocations: 1.169 MB / 0.5052 GB, free: 94.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005846/0.4974, allocations: 462.6 kB / 0.5057 GB, free: 93.74 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002494/0.4977, allocations: 15.88 kB / 0.5057 GB, free: 93.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006321/0.4983, allocations: 39.09 kB / 0.5057 GB, free: 93.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/0.4985, allocations: 65.36 kB / 0.5058 GB, free: 93.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/0.4986, allocations: 36.56 kB / 0.5058 GB, free: 93.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002436/0.501, allocations: 1.788 MB / 0.5076 GB, free: 93.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5011, allocations: 0 / 0.5076 GB, free: 93.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00141/0.5025, allocations: 0.5674 MB / 0.5081 GB, free: 93.02 MB / 378.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.001054/0.5035, allocations: 0.771 MB / 0.5089 GB, free: 92.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001548/0.5051, allocations: 0.886 MB / 0.5098 GB, free: 92.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.5051, allocations: 0 / 0.5098 GB, free: 92.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008097/0.5059, allocations: 0.5078 MB / 0.5102 GB, free: 92.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002735/0.5087, allocations: 0.5672 MB / 0.5108 GB, free: 92.15 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004785/0.5135, allocations: 4.493 MB / 0.5152 GB, free: 88.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007252/0.5142, allocations: 1.604 MB / 0.5168 GB, free: 86.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002649/0.5145, allocations: 163.4 kB / 0.5169 GB, free: 86.48 MB / 378.7 MB Notification: Performance of SimCode: time 1.012e-06/0.5145, allocations: 0 / 0.5169 GB, free: 86.48 MB / 378.7 MB Notification: Performance of Templates: time 0.04939/0.5639, allocations: 47.39 MB / 0.5632 GB, free: 39.13 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches