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.001063/0.001064, allocations: 102.5 kB / 17.06 MB, free: 6.117 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.001027/0.001027, allocations: 198.9 kB / 18 MB, free: 5.195 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.312/1.312, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009051/0.0009051, allocations: 39.94 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.2528, allocations: 49.44 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01311/0.266, allocations: 14.19 MB / 414.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0225/0.2885, allocations: 20.3 MB / 435.2 MB, free: 6.242 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00287/0.2914, allocations: 122.9 kB / 435.3 MB, free: 6.121 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003297/0.2947, allocations: 1.125 MB / 436.5 MB, free: 4.996 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007643/0.3025, allocations: 2.313 MB / 438.8 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004508/0.307, allocations: 1.443 MB / 440.2 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009941/0.317, allocations: 6.418 MB / 446.6 MB, free: 10.78 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008417/0.3178, allocations: 436.4 kB / 447.1 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001664/0.3195, allocations: 1.097 MB / 448.2 MB, free: 9.215 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001219/0.3208, allocations: 1.079 MB / 449.2 MB, free: 8.129 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001599/0.3209, allocations: 76 kB / 449.3 MB, free: 8.055 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003589/0.3245, allocations: 1.475 MB / 450.8 MB, free: 6.578 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002836/0.3248, allocations: 317.7 kB / 451.1 MB, free: 6.266 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001172/0.326, allocations: 1.331 MB / 452.4 MB, free: 4.926 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004281/0.3303, allocations: 3.685 MB / 456.1 MB, free: 1.227 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.3303, allocations: 3.938 kB / 456.1 MB, free: 1.223 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3303, allocations: 0 / 456.1 MB, free: 1.223 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.665e-05/0.3304, allocations: 0 / 456.1 MB, free: 1.223 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.004573/0.3349, allocations: 3.553 MB / 459.7 MB, free: 13.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.335, allocations: 12.02 kB / 459.7 MB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000355/0.3353, allocations: 375.5 kB / 460 MB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003363/0.3387, allocations: 2.524 MB / 462.6 MB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.726e-05/0.3388, allocations: 33 kB / 462.6 MB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.3389, allocations: 55.89 kB / 462.7 MB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/0.3404, allocations: 0.7576 MB / 463.4 MB, free: 9.758 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.3405, allocations: 0 / 463.4 MB, free: 9.758 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.777e-05/0.3405, allocations: 24 kB / 463.4 MB, free: 9.734 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.842e-05/0.3406, allocations: 19.98 kB / 463.5 MB, free: 9.715 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001681/0.3422, allocations: 0.8514 MB / 464.3 MB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004506/0.3468, allocations: 2.962 MB / 467.3 MB, free: 5.828 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001578/0.3483, allocations: 0.7833 MB / 468.1 MB, free: 5.039 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001395/0.3498, allocations: 0.9565 MB / 469 MB, free: 4.078 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02839/0.3782, allocations: 30.07 MB / 499.1 MB, free: 1.898 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00112/0.3793, allocations: 0.588 MB / 499.7 MB, free: 1.301 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.885e-06/0.3793, allocations: 0 / 499.7 MB, free: 1.301 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01113/0.3905, allocations: 5.24 MB / 0.4931 GB, free: 11.8 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.471e-05/0.3905, allocations: 68.41 kB / 0.4931 GB, free: 11.73 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003038/0.3936, allocations: 2.688 MB / 0.4958 GB, free: 9.023 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.481e-05/0.3937, allocations: 41.7 kB / 0.4958 GB, free: 8.977 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001069/0.3948, allocations: 1.303 MB / 0.4971 GB, free: 7.668 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002861/0.3951, allocations: 343.1 kB / 0.4974 GB, free: 7.328 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000354/0.3954, allocations: 230.3 kB / 0.4976 GB, free: 7.094 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.3956, allocations: 345.9 kB / 0.498 GB, free: 6.75 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001179/0.3967, allocations: 482 kB / 0.4984 GB, free: 6.277 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/0.398, allocations: 0.647 MB / 0.499 GB, free: 5.57 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002363/0.4004, allocations: 1.126 MB / 0.5001 GB, free: 4.383 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.4004, allocations: 4 kB / 0.5001 GB, free: 4.379 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003777/0.4042, allocations: 1.98 MB / 0.5021 GB, free: 2.32 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.4042, allocations: 15.88 kB / 0.5021 GB, free: 2.305 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001556/0.4044, allocations: 116 kB / 0.5022 GB, free: 2.191 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006969/0.4051, allocations: 264.6 kB / 0.5025 GB, free: 1.902 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008346/0.4059, allocations: 195.7 kB / 0.5026 GB, free: 1.711 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009456/0.4154, allocations: 14.25 MB / 0.5166 GB, free: 2.066 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001356/0.4168, allocations: 87.97 kB / 0.5166 GB, free: 1.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001405/0.4169, allocations: 56 kB / 0.5167 GB, free: 1.926 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.0007497/0.4177, allocations: 431 kB / 0.5171 GB, free: 1.496 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003548/0.418, allocations: 367.6 kB / 0.5175 GB, free: 1.133 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004544/0.4226, allocations: 2.214 MB / 0.5196 GB, free: 14.83 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.054e-05/0.4226, allocations: 8 kB / 0.5196 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.4226, allocations: 4 kB / 0.5196 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.4227, allocations: 3.984 kB / 0.5196 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001839/0.4245, allocations: 1.55 MB / 0.5211 GB, free: 13.22 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001603/0.4247, allocations: 108 kB / 0.5213 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006828/0.4254, allocations: 139.8 kB / 0.5214 GB, free: 12.98 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006436/0.426, allocations: 264.3 kB / 0.5216 GB, free: 12.69 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.282e-05/0.4261, allocations: 51.97 kB / 0.5217 GB, free: 12.64 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1827/0.6089, allocations: 14.24 MB / 0.5356 GB, free: 132.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.6089, allocations: 0 / 0.5356 GB, free: 132.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005292/0.6142, allocations: 2.539 MB / 0.5381 GB, free: 132 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006862/0.6149, allocations: 0.4908 MB / 0.5386 GB, free: 131.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002595/0.6152, allocations: 20.23 kB / 0.5386 GB, free: 131.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008861/0.6161, allocations: 82.33 kB / 0.5386 GB, free: 131.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002967/0.6164, allocations: 142.2 kB / 0.5388 GB, free: 131.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.207e-05/0.6165, allocations: 52.75 kB / 0.5388 GB, free: 131.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001767/0.6182, allocations: 1.765 MB / 0.5406 GB, free: 131.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6183, allocations: 7.359 kB / 0.5406 GB, free: 131.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001194/0.6195, allocations: 0.6443 MB / 0.5412 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.000916/0.6204, allocations: 0.8079 MB / 0.542 GB, free: 131.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003186/0.6236, allocations: 2.517 MB / 0.5444 GB, free: 129.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.6236, allocations: 0 / 0.5444 GB, free: 129.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001906/0.6255, allocations: 1.957 MB / 0.5464 GB, free: 128.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001936/0.6274, allocations: 0.6099 MB / 0.5469 GB, free: 128.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004924/0.6324, allocations: 4.663 MB / 0.5515 GB, free: 125.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000711/0.6331, allocations: 1.663 MB / 0.5531 GB, free: 123.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008983/0.634, allocations: 390.6 kB / 0.5535 GB, free: 123.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002872/0.6343, allocations: 167.4 kB / 0.5537 GB, free: 123.4 MB / 462.1 MB Notification: Performance of SimCode: time 6.71e-07/0.6343, allocations: 0 / 0.5537 GB, free: 123.4 MB / 462.1 MB Notification: Performance of Templates: time 0.0502/0.6845, allocations: 37.11 MB / 0.5899 GB, free: 86.6 MB / 462.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","/var/lib/jenkins/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