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.00132/0.00132, allocations: 109.9 kB / 17.73 MB, free: 5.324 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.001381/0.001381, allocations: 189.5 kB / 18.67 MB, free: 4.398 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.297/1.297, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 55.88 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2334, allocations: 49.43 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01335/0.2468, allocations: 14.18 MB / 415.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02484/0.2717, allocations: 20.32 MB / 435.9 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002816/0.2745, allocations: 126.9 kB / 436 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00348/0.278, allocations: 1.109 MB / 437.1 MB, free: 4.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008449/0.2865, allocations: 2.286 MB / 439.4 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005104/0.2917, allocations: 1.443 MB / 440.9 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01005/0.3018, allocations: 6.418 MB / 447.3 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009317/0.3027, allocations: 432.5 kB / 447.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001682/0.3044, allocations: 1.097 MB / 448.8 MB, free: 9.242 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001699/0.3061, allocations: 1.079 MB / 449.9 MB, free: 8.156 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003599/0.3065, allocations: 80 kB / 450 MB, free: 8.078 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004518/0.311, allocations: 1.475 MB / 451.4 MB, free: 6.602 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004068/0.3115, allocations: 317.7 kB / 451.7 MB, free: 6.289 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001691/0.3132, allocations: 1.324 MB / 453.1 MB, free: 4.957 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005382/0.3186, allocations: 3.685 MB / 456.7 MB, free: 1.258 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.384e-05/0.3186, allocations: 0 / 456.7 MB, free: 1.258 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3186, allocations: 3.938 kB / 456.8 MB, free: 1.254 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001018/0.3187, allocations: 0 / 456.8 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.005483/0.3242, allocations: 3.561 MB / 460.3 MB, free: 13.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.3243, allocations: 11.97 kB / 460.3 MB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004769/0.3247, allocations: 379.5 kB / 460.7 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00349/0.3282, allocations: 2.52 MB / 463.2 MB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.961e-05/0.3283, allocations: 33 kB / 463.2 MB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.3284, allocations: 55.89 kB / 463.3 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.3299, allocations: 0.7616 MB / 464.1 MB, free: 9.777 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.3299, allocations: 3.984 kB / 464.1 MB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.054e-05/0.33, allocations: 20 kB / 464.1 MB, free: 9.754 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.931e-05/0.33, allocations: 19.98 kB / 464.1 MB, free: 9.734 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001676/0.3317, allocations: 0.8514 MB / 465 MB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00471/0.3364, allocations: 2.962 MB / 467.9 MB, free: 5.848 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001633/0.3381, allocations: 0.7833 MB / 468.7 MB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001366/0.3394, allocations: 0.9527 MB / 469.7 MB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02778/0.3672, allocations: 30.08 MB / 499.7 MB, free: 1.918 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001077/0.3683, allocations: 0.588 MB / 0.4886 GB, free: 1.32 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.374e-06/0.3684, allocations: 0 / 0.4886 GB, free: 1.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01117/0.3795, allocations: 5.236 MB / 0.4937 GB, free: 11.83 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.585e-05/0.3796, allocations: 64.41 kB / 0.4938 GB, free: 11.75 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003011/0.3826, allocations: 2.688 MB / 0.4964 GB, free: 9.051 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.734e-05/0.3827, allocations: 41.7 kB / 0.4964 GB, free: 9.004 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001034/0.3838, allocations: 1.299 MB / 0.4977 GB, free: 7.699 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002666/0.3841, allocations: 339.1 kB / 0.498 GB, free: 7.363 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003368/0.3844, allocations: 238.3 kB / 0.4983 GB, free: 7.121 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.3845, allocations: 341.9 kB / 0.4986 GB, free: 6.781 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/0.3857, allocations: 485.9 kB / 0.499 GB, free: 6.305 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001239/0.3869, allocations: 0.647 MB / 0.4997 GB, free: 5.598 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002336/0.3893, allocations: 1.126 MB / 0.5008 GB, free: 4.41 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.3893, allocations: 4 kB / 0.5008 GB, free: 4.406 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003796/0.3931, allocations: 1.975 MB / 0.5027 GB, free: 2.352 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.3931, allocations: 7.938 kB / 0.5027 GB, free: 2.344 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001591/0.3933, allocations: 120 kB / 0.5028 GB, free: 2.227 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006211/0.3939, allocations: 272.9 kB / 0.5031 GB, free: 1.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007912/0.3947, allocations: 199.7 kB / 0.5033 GB, free: 1.734 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00881/0.4036, allocations: 14.25 MB / 0.5172 GB, free: 2.086 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001419/0.405, allocations: 83.91 kB / 0.5173 GB, free: 2.004 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001394/0.4052, allocations: 56 kB / 0.5173 GB, free: 1.949 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.0007687/0.4059, allocations: 427.1 kB / 0.5177 GB, free: 1.523 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004066/0.4064, allocations: 367.6 kB / 0.5181 GB, free: 1.16 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004572/0.4109, allocations: 2.214 MB / 0.5202 GB, free: 14.86 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-05/0.411, allocations: 12 kB / 0.5203 GB, free: 14.85 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.411, allocations: 4 kB / 0.5203 GB, free: 14.85 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/0.411, allocations: 7.984 kB / 0.5203 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001919/0.4129, allocations: 1.55 MB / 0.5218 GB, free: 13.24 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001503/0.4131, allocations: 112 kB / 0.5219 GB, free: 13.13 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007179/0.4138, allocations: 135.8 kB / 0.522 GB, free: 13 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006255/0.4145, allocations: 264.3 kB / 0.5223 GB, free: 12.71 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.793e-05/0.4146, allocations: 47.97 kB / 0.5223 GB, free: 12.66 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.195/0.6095, allocations: 14.23 MB / 0.5362 GB, free: 132.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.6096, allocations: 3.594 kB / 0.5362 GB, free: 132.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005411/0.615, allocations: 2.545 MB / 0.5387 GB, free: 132.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008023/0.6158, allocations: 0.4888 MB / 0.5392 GB, free: 132 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003026/0.6161, allocations: 20.25 kB / 0.5392 GB, free: 132 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009137/0.617, allocations: 86.41 kB / 0.5393 GB, free: 132 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003166/0.6174, allocations: 135.7 kB / 0.5394 GB, free: 132 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-05/0.6175, allocations: 49.66 kB / 0.5395 GB, free: 132 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001834/0.6193, allocations: 1.772 MB / 0.5412 GB, free: 131.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6193, allocations: 0 / 0.5412 GB, free: 131.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001345/0.6207, allocations: 0.6502 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.0009739/0.6216, allocations: 0.8102 MB / 0.5426 GB, free: 131.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003272/0.6249, allocations: 2.514 MB / 0.5451 GB, free: 129.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.625, allocations: 1.375 kB / 0.5451 GB, free: 129.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00194/0.6269, allocations: 1.947 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.002258/0.6292, allocations: 0.6206 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.005491/0.6347, allocations: 4.721 MB / 0.5522 GB, free: 125.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007115/0.6354, allocations: 1.655 MB / 0.5538 GB, free: 123.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003598/0.6358, allocations: 171.4 kB / 0.554 GB, free: 123.7 MB / 462.1 MB Notification: Performance of SimCode: time 1.021e-06/0.6358, allocations: 0 / 0.554 GB, free: 123.7 MB / 462.1 MB Notification: Performance of Templates: time 0.1016/0.7375, allocations: 154.7 MB / 0.705 GB, free: 0.9688 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