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.001318/0.001318, allocations: 175 kB / 16.72 MB, free: 5.082 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.37/1.37, allocations: 205.4 MB / 222.9 MB, free: 8.938 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.0007635/0.0007638, allocations: 94.34 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002978/0.0002978, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1858/0.1861, allocations: 47.58 MB / 375.1 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.007548/0.1937, allocations: 11.82 MB / 386.9 MB, free: 36.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01473/0.2085, allocations: 17.57 MB / 404.5 MB, free: 19.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001684/0.2102, allocations: 67.44 kB / 404.5 MB, free: 19.19 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002132/0.2123, allocations: 0.8282 MB / 405.4 MB, free: 18.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004846/0.2172, allocations: 1.789 MB / 407.2 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002843/0.22, allocations: 1.061 MB / 408.2 MB, free: 15.49 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006565/0.2266, allocations: 5.833 MB / 414 MB, free: 9.637 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005224/0.2272, allocations: 412.8 kB / 414.4 MB, free: 9.203 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007083/0.2279, allocations: 0.8085 MB / 415.3 MB, free: 8.391 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006505/0.2285, allocations: 0.9358 MB / 416.2 MB, free: 7.449 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001305/0.2287, allocations: 40 kB / 416.2 MB, free: 7.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002553/0.2312, allocations: 1.085 MB / 417.3 MB, free: 6.324 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001805/0.2314, allocations: 258 kB / 417.6 MB, free: 6.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007533/0.2322, allocations: 1.233 MB / 418.8 MB, free: 4.824 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001548/0.2337, allocations: 2.617 MB / 421.4 MB, free: 2.199 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2338, allocations: 0 / 421.4 MB, free: 2.199 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2338, allocations: 0 / 421.4 MB, free: 2.199 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.38e-05/0.2338, allocations: 0 / 421.4 MB, free: 2.199 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.003355/0.2372, allocations: 3.084 MB / 424.5 MB, free: 15.04 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.2372, allocations: 8.031 kB / 424.5 MB, free: 15.04 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003233/0.2375, allocations: 379.5 kB / 424.9 MB, free: 14.66 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00319/0.2407, allocations: 2.544 MB / 427.4 MB, free: 12.04 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.9e-05/0.2408, allocations: 37 kB / 427.5 MB, free: 12 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.2409, allocations: 47.91 kB / 427.5 MB, free: 11.96 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.2421, allocations: 0.7187 MB / 428.2 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.2421, allocations: 0 / 428.2 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.439e-05/0.2422, allocations: 16 kB / 428.2 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.097e-05/0.2422, allocations: 23.98 kB / 428.3 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/0.2436, allocations: 0.8358 MB / 429.1 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004143/0.2478, allocations: 2.918 MB / 432 MB, free: 7.375 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/0.249, allocations: 0.7406 MB / 432.8 MB, free: 6.605 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009588/0.25, allocations: 0.6821 MB / 433.4 MB, free: 5.918 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02608/0.2761, allocations: 30.18 MB / 463.6 MB, free: 3.633 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007358/0.2768, allocations: 385.6 kB / 464 MB, free: 3.246 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 2.524e-06/0.2768, allocations: 0 / 464 MB, free: 3.246 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.002856/0.2797, allocations: 1.45 MB / 465.4 MB, free: 1.762 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.127e-05/0.2798, allocations: 55.41 kB / 465.5 MB, free: 1.695 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003006/0.2828, allocations: 2.789 MB / 468.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.745e-05/0.2828, allocations: 33.7 kB / 468.3 MB, free: 14.85 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00108/0.2839, allocations: 1.395 MB / 469.7 MB, free: 13.45 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001376/0.2841, allocations: 165.7 kB / 469.9 MB, free: 13.28 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.632e-05/0.2841, allocations: 20 kB / 469.9 MB, free: 13.26 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.2843, allocations: 333.9 kB / 470.2 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000542/0.2848, allocations: 257.9 kB / 470.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007342/0.2856, allocations: 0.6203 MB / 471.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001313/0.2869, allocations: 0.9193 MB / 472 MB, free: 10.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.2869, allocations: 0 / 472 MB, free: 10.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002082/0.289, allocations: 1.311 MB / 473.3 MB, free: 9.477 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/0.289, allocations: 12.19 kB / 473.3 MB, free: 9.465 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001028/0.2891, allocations: 87.98 kB / 473.4 MB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005309/0.2897, allocations: 284.8 kB / 473.7 MB, free: 9.102 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005435/0.2902, allocations: 179.7 kB / 473.9 MB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008769/0.2911, allocations: 0.8826 MB / 474.8 MB, free: 8.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008463/0.292, allocations: 119.1 kB / 474.9 MB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.317e-05/0.2921, allocations: 64 kB / 474.9 MB, free: 7.84 MB / 362.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.0006831/0.2928, allocations: 439.1 kB / 475.4 MB, free: 7.402 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000291/0.2931, allocations: 367.5 kB / 475.7 MB, free: 7.039 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002883/0.296, allocations: 1.314 MB / 477 MB, free: 5.715 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.296, allocations: 4 kB / 477 MB, free: 5.711 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.296, allocations: 4 kB / 477 MB, free: 5.707 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.296, allocations: 3.938 kB / 477.1 MB, free: 5.703 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003206/0.2992, allocations: 2.232 MB / 479.3 MB, free: 3.383 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.085e-05/0.2993, allocations: 68.12 kB / 479.4 MB, free: 3.316 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002899/0.2996, allocations: 79.88 kB / 479.4 MB, free: 3.238 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000435/0.3001, allocations: 260.8 kB / 479.7 MB, free: 2.98 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.457e-05/0.3001, allocations: 31.98 kB / 479.7 MB, free: 2.949 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000809/0.3009, allocations: 0.8569 MB / 480.6 MB, free: 2.066 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.301, allocations: 4.062 kB / 480.6 MB, free: 2.062 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001681/0.3026, allocations: 1.168 MB / 481.7 MB, free: 0.8555 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005865/0.3032, allocations: 472.3 kB / 482.2 MB, free: 380 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002308/0.3035, allocations: 11.94 kB / 482.2 MB, free: 368 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006019/0.3041, allocations: 43.95 kB / 482.3 MB, free: 324 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.3042, allocations: 63.88 kB / 482.3 MB, free: 260 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.388e-05/0.3043, allocations: 43.98 kB / 482.4 MB, free: 216 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00206/0.3064, allocations: 1.801 MB / 484.2 MB, free: 14.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3064, allocations: 0 / 484.2 MB, free: 14.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001109/0.3075, allocations: 0.5661 MB / 484.7 MB, free: 13.84 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.001023/0.3085, allocations: 0.7962 MB / 485.5 MB, free: 13.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001649/0.3102, allocations: 0.8774 MB / 486.4 MB, free: 12.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3102, allocations: 0 / 486.4 MB, free: 12.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009337/0.3111, allocations: 0.5202 MB / 486.9 MB, free: 11.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002267/0.3134, allocations: 481.6 kB / 487.4 MB, free: 11.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005319/0.3188, allocations: 4.518 MB / 491.9 MB, free: 6.547 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001/0.3198, allocations: 1.613 MB / 493.5 MB, free: 4.906 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000279/0.3201, allocations: 163.4 kB / 493.7 MB, free: 4.746 MB / 378.7 MB Notification: Performance of SimCode: time 7.82e-07/0.3201, allocations: 4 kB / 493.7 MB, free: 4.742 MB / 378.7 MB Notification: Performance of Templates: time 0.2328/0.5529, allocations: 47.61 MB / 0.5286 GB, free: 106.5 MB / 394.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/jenkins/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