Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 115.8 kB / 17.74 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 189.5 kB / 18.67 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00101/0.00101, allocations: 43.94 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2479, allocations: 49.44 MB / 401.4 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01288/0.2608, allocations: 14.18 MB / 415.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0231/0.2839, allocations: 20.31 MB / 435.9 MB, free: 6.223 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002333/0.2863, allocations: 118.9 kB / 436 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003108/0.2895, allocations: 1.117 MB / 437.1 MB, free: 4.988 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007157/0.2967, allocations: 2.286 MB / 439.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004744/0.3014, allocations: 1.436 MB / 440.8 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009358/0.3108, allocations: 6.426 MB / 447.3 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007475/0.3116, allocations: 428.5 kB / 447.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001511/0.3131, allocations: 1.097 MB / 448.8 MB, free: 9.242 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001301/0.3145, allocations: 1.079 MB / 449.9 MB, free: 8.156 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002008/0.3147, allocations: 76 kB / 449.9 MB, free: 8.082 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003744/0.3184, allocations: 1.471 MB / 451.4 MB, free: 6.609 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003587/0.3188, allocations: 321.7 kB / 451.7 MB, free: 6.293 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001373/0.3202, allocations: 1.335 MB / 453.1 MB, free: 4.949 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005016/0.3252, allocations: 3.677 MB / 456.7 MB, free: 1.258 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3252, allocations: 4 kB / 456.7 MB, free: 1.254 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3252, allocations: 0 / 456.7 MB, free: 1.254 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.459e-05/0.3253, allocations: 0 / 456.7 MB, free: 1.254 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.005057/0.3304, allocations: 3.557 MB / 460.3 MB, free: 13.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.3304, allocations: 12.03 kB / 460.3 MB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003902/0.3308, allocations: 371.5 kB / 460.7 MB, free: 13.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003266/0.3341, allocations: 2.524 MB / 463.2 MB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.089e-05/0.3342, allocations: 44.91 kB / 463.2 MB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000124/0.3343, allocations: 55.91 kB / 463.3 MB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/0.3358, allocations: 0.7538 MB / 464.1 MB, free: 9.781 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.3358, allocations: 0 / 464.1 MB, free: 9.781 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.244e-05/0.3359, allocations: 20 kB / 464.1 MB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.965e-05/0.3359, allocations: 19.98 kB / 464.1 MB, free: 9.742 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001737/0.3376, allocations: 0.8514 MB / 464.9 MB, free: 8.891 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004624/0.3423, allocations: 2.966 MB / 467.9 MB, free: 5.852 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001683/0.344, allocations: 0.7949 MB / 468.7 MB, free: 5.051 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001422/0.3454, allocations: 0.9527 MB / 469.7 MB, free: 4.094 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02836/0.3738, allocations: 30.06 MB / 499.7 MB, free: 1.926 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001197/0.375, allocations: 0.5957 MB / 0.4886 GB, free: 1.32 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.276e-06/0.375, allocations: 0 / 0.4886 GB, free: 1.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01212/0.3872, allocations: 5.236 MB / 0.4937 GB, free: 11.83 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.108e-05/0.3872, allocations: 68.39 kB / 0.4938 GB, free: 11.75 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003086/0.3903, allocations: 2.688 MB / 0.4964 GB, free: 9.047 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001059/0.3905, allocations: 49.7 kB / 0.4964 GB, free: 8.992 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001049/0.3915, allocations: 1.295 MB / 0.4977 GB, free: 7.691 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002891/0.3918, allocations: 343.1 kB / 0.498 GB, free: 7.352 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003381/0.3922, allocations: 230.3 kB / 0.4983 GB, free: 7.117 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.3923, allocations: 349.9 kB / 0.4986 GB, free: 6.77 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001253/0.3936, allocations: 478 kB / 0.499 GB, free: 6.301 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001387/0.395, allocations: 0.6431 MB / 0.4997 GB, free: 5.598 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002549/0.3975, allocations: 1.133 MB / 0.5008 GB, free: 4.402 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.3975, allocations: 4 kB / 0.5008 GB, free: 4.398 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004082/0.4016, allocations: 1.972 MB / 0.5027 GB, free: 2.348 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.4017, allocations: 15.97 kB / 0.5027 GB, free: 2.332 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001662/0.4018, allocations: 116 kB / 0.5028 GB, free: 2.219 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006441/0.4025, allocations: 264.4 kB / 0.5031 GB, free: 1.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008884/0.4034, allocations: 199.7 kB / 0.5033 GB, free: 1.734 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009416/0.4128, allocations: 14.25 MB / 0.5172 GB, free: 2.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/0.4143, allocations: 87.95 kB / 0.5173 GB, free: 2.004 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000148/0.4145, allocations: 60 kB / 0.5173 GB, free: 1.945 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008469/0.4154, allocations: 425.5 kB / 0.5177 GB, free: 1.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000595/0.416, allocations: 371.6 kB / 0.5181 GB, free: 1.152 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004948/0.4209, allocations: 2.214 MB / 0.5202 GB, free: 14.86 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.291e-05/0.421, allocations: 8 kB / 0.5203 GB, free: 14.85 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.421, allocations: 4 kB / 0.5203 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.387e-06/0.421, allocations: 3.984 kB / 0.5203 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002121/0.4231, allocations: 1.55 MB / 0.5218 GB, free: 13.24 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001526/0.4233, allocations: 112 kB / 0.5219 GB, free: 13.13 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007332/0.424, allocations: 139.8 kB / 0.522 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000672/0.4247, allocations: 264.3 kB / 0.5223 GB, free: 12.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001006/0.4248, allocations: 43.98 kB / 0.5223 GB, free: 12.66 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.201/0.6258, allocations: 14.24 MB / 0.5362 GB, free: 132.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.6258, allocations: 0.5312 kB / 0.5362 GB, free: 132.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005914/0.6318, allocations: 2.541 MB / 0.5387 GB, free: 132.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007851/0.6326, allocations: 0.4893 MB / 0.5392 GB, free: 132 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003187/0.6329, allocations: 20.19 kB / 0.5392 GB, free: 132 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009973/0.6339, allocations: 91.62 kB / 0.5393 GB, free: 132 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003081/0.6342, allocations: 131.5 kB / 0.5394 GB, free: 132 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-05/0.6343, allocations: 57.06 kB / 0.5395 GB, free: 132 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001882/0.6362, allocations: 1.77 MB / 0.5412 GB, free: 131.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.6362, allocations: 3.438 kB / 0.5412 GB, free: 131.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001281/0.6375, allocations: 0.6476 MB / 0.5418 GB, free: 131.6 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009999/0.6385, allocations: 0.8065 MB / 0.5426 GB, free: 131.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00347/0.642, allocations: 2.521 MB / 0.5451 GB, free: 129.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.642, allocations: 0 / 0.5451 GB, free: 129.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002059/0.6441, allocations: 1.951 MB / 0.547 GB, free: 128.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002256/0.6464, allocations: 0.6149 MB / 0.5476 GB, free: 128.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005473/0.6518, allocations: 4.728 MB / 0.5522 GB, free: 125.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007092/0.6526, allocations: 1.664 MB / 0.5538 GB, free: 123.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003484/0.6529, allocations: 171.4 kB / 0.554 GB, free: 123.6 MB / 462.1 MB Notification: Performance of SimCode: time 5.51e-07/0.6529, allocations: 0 / 0.554 GB, free: 123.6 MB / 462.1 MB Notification: Performance of Templates: time 0.1045/0.7574, allocations: 154.2 MB / 0.7046 GB, free: 1.41 MB / 494.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches