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.0009036/0.0009038, allocations: 97.3 kB / 16.3 MB, free: 5.656 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.0008642/0.0008644, allocations: 185.3 kB / 17.19 MB, free: 5.59 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.306/1.306, allocations: 223.2 MB / 241.1 MB, free: 280 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003471/0.0003471, allocations: 11.94 kB / 300.7 MB, free: 6.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1157, allocations: 50.41 MB / 351.1 MB, free: 4.039 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.00963/0.1254, allocations: 11.38 MB / 362.5 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1674/0.2928, allocations: 17.49 MB / 380 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00119/0.2941, allocations: 65.81 kB / 380.1 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001991/0.2961, allocations: 0.8952 MB / 381 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005749/0.3018, allocations: 2.07 MB / 383 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004425/0.3063, allocations: 1.188 MB / 384.2 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009518/0.3158, allocations: 6.157 MB / 390.4 MB, free: 7.355 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005762/0.3164, allocations: 390.5 kB / 390.8 MB, free: 7.195 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001556/0.318, allocations: 0.9306 MB / 391.7 MB, free: 6.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000981/0.3189, allocations: 0.993 MB / 392.7 MB, free: 6.543 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001391/0.3191, allocations: 45.97 kB / 392.7 MB, free: 6.539 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004611/0.3237, allocations: 1.425 MB / 394.2 MB, free: 6.461 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002392/0.324, allocations: 271.5 kB / 394.4 MB, free: 6.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005035/0.3245, allocations: 0.5955 MB / 395 MB, free: 6.188 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001982/0.3265, allocations: 2.538 MB / 397.5 MB, free: 4.508 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.3265, allocations: 0 / 397.5 MB, free: 4.508 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3265, allocations: 1.375 kB / 397.6 MB, free: 4.508 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.77e-05/0.3265, allocations: 0 / 397.6 MB, free: 4.508 MB / 302.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.004071/0.3306, allocations: 3.167 MB / 400.7 MB, free: 2.211 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.3306, allocations: 9.438 kB / 400.7 MB, free: 2.211 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003065/0.3309, allocations: 383.1 kB / 401.1 MB, free: 2.016 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003075/0.334, allocations: 2.361 MB / 403.5 MB, free: 264 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.049e-05/0.3341, allocations: 32.34 kB / 403.5 MB, free: 252 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.3342, allocations: 55.45 kB / 403.5 MB, free: 228 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.3355, allocations: 0.782 MB / 404.3 MB, free: 15.78 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.3356, allocations: 3.188 kB / 404.3 MB, free: 15.78 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.205e-05/0.3356, allocations: 20.81 kB / 404.4 MB, free: 15.76 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/0.3357, allocations: 19.89 kB / 404.4 MB, free: 15.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001757/0.3374, allocations: 0.9218 MB / 405.3 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004508/0.342, allocations: 2.994 MB / 408.3 MB, free: 11.8 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001729/0.3437, allocations: 0.8536 MB / 409.1 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02886/0.3726, allocations: 30.25 MB / 439.4 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001194/0.3738, allocations: 0.6167 MB / 440 MB, free: 7.984 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 2.595e-06/0.3738, allocations: 0 / 440 MB, free: 7.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=99): time 0.01323/0.3871, allocations: 6.01 MB / 446 MB, free: 1.645 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.531e-05/0.3871, allocations: 72.38 kB / 446.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003086/0.3902, allocations: 2.657 MB / 448.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.126e-05/0.3903, allocations: 45.69 kB / 448.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001094/0.3914, allocations: 1.303 MB / 450.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000267/0.3917, allocations: 337.6 kB / 450.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.292e-05/0.3918, allocations: 16 kB / 450.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.3919, allocations: 353.9 kB / 450.8 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001343/0.3933, allocations: 0.5254 MB / 451.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001408/0.3947, allocations: 0.7056 MB / 452 MB, free: 11.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001324/0.396, allocations: 0.573 MB / 452.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.396, allocations: 0 / 452.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004129/0.4002, allocations: 2.093 MB / 454.7 MB, free: 8.789 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.4002, allocations: 12.52 kB / 454.7 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001583/0.4004, allocations: 116 kB / 454.8 MB, free: 8.664 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006405/0.401, allocations: 270.5 kB / 455.1 MB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009289/0.4019, allocations: 231.7 kB / 455.3 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008641/0.4106, allocations: 13.32 MB / 468.6 MB, free: 9.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001624/0.4122, allocations: 116 kB / 468.7 MB, free: 9.387 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/0.4124, allocations: 67.92 kB / 468.8 MB, free: 9.32 MB / 382.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 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008149/0.4132, allocations: 417.6 kB / 469.2 MB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003965/0.4136, allocations: 367.6 kB / 469.6 MB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005284/0.4189, allocations: 2.363 MB / 471.9 MB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.4189, allocations: 12 kB / 471.9 MB, free: 6.078 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.4189, allocations: 4 kB / 471.9 MB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/0.4189, allocations: 3.984 kB / 472 MB, free: 6.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002058/0.421, allocations: 1.544 MB / 473.5 MB, free: 4.477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000138/0.4212, allocations: 116 kB / 473.6 MB, free: 4.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007601/0.4219, allocations: 167.8 kB / 473.8 MB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005879/0.4225, allocations: 268.3 kB / 474 MB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.448e-05/0.4226, allocations: 43.98 kB / 474.1 MB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008283/0.4309, allocations: 13.31 MB / 487.4 MB, free: 5.227 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.4309, allocations: 3.953 kB / 487.4 MB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005842/0.4368, allocations: 2.731 MB / 490.1 MB, free: 2.402 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001199/0.438, allocations: 484.5 kB / 490.6 MB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003239/0.4383, allocations: 24 kB / 490.6 MB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/0.4394, allocations: 115.9 kB / 490.7 MB, free: 1.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003271/0.4397, allocations: 144.7 kB / 490.9 MB, free: 1.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/0.4398, allocations: 47.97 kB / 490.9 MB, free: 1.582 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00228/0.4421, allocations: 1.739 MB / 492.7 MB, free: 15.83 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4421, allocations: 0 / 492.7 MB, free: 15.83 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001569/0.4437, allocations: 0.6483 MB / 493.3 MB, free: 15.18 MB / 414.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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001065/0.4448, allocations: 0.7785 MB / 494.1 MB, free: 14.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004247/0.449, allocations: 2.647 MB / 496.7 MB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.4491, allocations: 0 / 496.7 MB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002655/0.4517, allocations: 2.011 MB / 498.7 MB, free: 9.441 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00241/0.4541, allocations: 0.5888 MB / 499.3 MB, free: 8.848 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006873/0.461, allocations: 5.307 MB / 0.4928 GB, free: 3.512 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001153/0.4622, allocations: 1.72 MB / 0.4945 GB, free: 1.766 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001414/0.4636, allocations: 395.3 kB / 0.4949 GB, free: 1.375 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002861/0.4639, allocations: 163.4 kB / 0.495 GB, free: 1.215 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4639, allocations: 0 / 0.495 GB, free: 1.215 MB / 414.1 MB Notification: Performance of Templates: time 0.1961/0.66, allocations: 33.63 MB / 0.5279 GB, free: 153.7 MB / 446.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches