Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_3.2.3_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.001647/0.001647, allocations: 106.4 kB / 17.73 MB, free: 5.332 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.00169/0.00169, allocations: 183.1 kB / 18.66 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 47.92 kB / 328.5 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0792/0.08031, allocations: 46.62 MB / 375.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1657/0.246, allocations: 13.53 MB / 388.7 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02031/0.2664, allocations: 19.37 MB / 408 MB, free: 7.176 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002381/0.2688, allocations: 130.3 kB / 408.1 MB, free: 7.102 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003016/0.2719, allocations: 1.089 MB / 409.2 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008161/0.28, allocations: 2.249 MB / 411.5 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005727/0.2858, allocations: 1.387 MB / 412.9 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01044/0.2962, allocations: 6.279 MB / 419.2 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007677/0.297, allocations: 429.7 kB / 419.6 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00179/0.2988, allocations: 0.9847 MB / 420.6 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001626/0.3005, allocations: 1.057 MB / 421.6 MB, free: 144 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002923/0.3008, allocations: 74.38 kB / 421.7 MB, free: 144 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004735/0.3055, allocations: 1.161 MB / 422.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000414/0.306, allocations: 329.6 kB / 423.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001811/0.3078, allocations: 1.327 MB / 424.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005962/0.3138, allocations: 3.725 MB / 428.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.3138, allocations: 7.984 kB / 428.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3138, allocations: 4 kB / 428.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.438e-05/0.3139, allocations: 3.938 kB / 428.2 MB, free: 10.36 MB / 350.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.005247/0.3191, allocations: 3.704 MB / 431.9 MB, free: 6.582 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.3192, allocations: 12.03 kB / 432 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004129/0.3196, allocations: 401.5 kB / 432.3 MB, free: 6.176 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00346/0.3231, allocations: 2.571 MB / 434.9 MB, free: 3.531 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.51e-05/0.3231, allocations: 40.92 kB / 435 MB, free: 3.488 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001253/0.3232, allocations: 52 kB / 435 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001483/0.3247, allocations: 0.7538 MB / 435.8 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.3248, allocations: 0 / 435.8 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.079e-05/0.3248, allocations: 20 kB / 435.8 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.203e-05/0.3249, allocations: 23.97 kB / 435.8 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001792/0.3267, allocations: 0.8553 MB / 436.7 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004642/0.3313, allocations: 2.995 MB / 439.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001774/0.3331, allocations: 0.791 MB / 440.4 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00146/0.3346, allocations: 0.9487 MB / 441.4 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02973/0.3643, allocations: 30.12 MB / 471.5 MB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001222/0.3656, allocations: 0.6035 MB / 472.1 MB, free: 10.12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=96): time 2.995e-06/0.3656, allocations: 0 / 472.1 MB, free: 10.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=99): time 0.01226/0.3779, allocations: 5.286 MB / 477.4 MB, free: 4.586 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.51e-05/0.3779, allocations: 64.39 kB / 477.5 MB, free: 4.512 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00348/0.3814, allocations: 2.717 MB / 480.2 MB, free: 1.781 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.8e-05/0.3815, allocations: 45.7 kB / 480.2 MB, free: 1.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001091/0.3826, allocations: 1.304 MB / 481.5 MB, free: 432 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002883/0.3829, allocations: 349.1 kB / 481.9 MB, free: 80 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003794/0.3833, allocations: 230.6 kB / 482.1 MB, free: 15.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.3835, allocations: 353.9 kB / 482.4 MB, free: 15.49 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001276/0.3847, allocations: 476.7 kB / 482.9 MB, free: 15.03 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00139/0.3861, allocations: 0.647 MB / 483.6 MB, free: 14.31 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002645/0.3888, allocations: 1.133 MB / 484.7 MB, free: 13.12 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.3888, allocations: 4 kB / 484.7 MB, free: 13.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004067/0.3929, allocations: 1.985 MB / 486.7 MB, free: 11.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.3929, allocations: 16 kB / 486.7 MB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001707/0.3931, allocations: 123.9 kB / 486.8 MB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007041/0.3938, allocations: 272.4 kB / 487.1 MB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008898/0.3947, allocations: 191.7 kB / 487.3 MB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009697/0.4044, allocations: 14.27 MB / 0.4898 GB, free: 10.78 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001547/0.406, allocations: 87.89 kB / 0.4899 GB, free: 10.69 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001378/0.4062, allocations: 60.06 kB / 0.4899 GB, free: 10.63 MB / 430.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.0008354/0.407, allocations: 429.5 kB / 0.4903 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004041/0.4074, allocations: 393.5 kB / 0.4907 GB, free: 9.816 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004867/0.4123, allocations: 2.218 MB / 0.4929 GB, free: 7.52 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.4123, allocations: 8 kB / 0.4929 GB, free: 7.512 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.4123, allocations: 4 kB / 0.4929 GB, free: 7.508 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.4124, allocations: 3.984 kB / 0.4929 GB, free: 7.504 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001923/0.4143, allocations: 1.551 MB / 0.4944 GB, free: 5.898 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001376/0.4144, allocations: 112 kB / 0.4945 GB, free: 5.789 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007299/0.4152, allocations: 135.8 kB / 0.4946 GB, free: 5.656 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006545/0.4158, allocations: 272.3 kB / 0.4949 GB, free: 5.359 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-05/0.4159, allocations: 43.97 kB / 0.4949 GB, free: 5.316 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009311/0.4253, allocations: 14.25 MB / 0.5089 GB, free: 5.672 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.4253, allocations: 0 / 0.5089 GB, free: 5.672 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00547/0.4308, allocations: 2.569 MB / 0.5114 GB, free: 3.016 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008074/0.4316, allocations: 0.5063 MB / 0.5119 GB, free: 2.488 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003084/0.4319, allocations: 16 kB / 0.5119 GB, free: 2.473 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009707/0.4329, allocations: 87.83 kB / 0.512 GB, free: 2.387 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003571/0.4333, allocations: 136.8 kB / 0.5121 GB, free: 2.254 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.4334, allocations: 51.98 kB / 0.5121 GB, free: 2.203 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002318/0.4357, allocations: 1.782 MB / 0.5139 GB, free: 424 kB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4357, allocations: 0 / 0.5139 GB, free: 424 kB / 446.1 MB Notification: Performance of remove unused functions: time 0.001457/0.4372, allocations: 0.6635 MB / 0.5145 GB, free: 15.75 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.001191/0.4384, allocations: 0.8194 MB / 0.5153 GB, free: 14.93 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004079/0.4425, allocations: 2.518 MB / 0.5178 GB, free: 12.25 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.4425, allocations: 4.188 kB / 0.5178 GB, free: 12.25 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00255/0.445, allocations: 1.96 MB / 0.5197 GB, free: 10.13 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001795/0.4468, allocations: 0.5241 MB / 0.5202 GB, free: 9.605 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006462/0.4533, allocations: 4.771 MB / 0.5249 GB, free: 4.797 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001084/0.4544, allocations: 1.666 MB / 0.5265 GB, free: 3.105 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001058/0.4555, allocations: 395.3 kB / 0.5269 GB, free: 2.715 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002868/0.4558, allocations: 171.4 kB / 0.527 GB, free: 2.547 MB / 462.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4558, allocations: 0 / 0.527 GB, free: 2.547 MB / 462.1 MB Notification: Performance of Templates: time 0.2741/0.7299, allocations: 37.28 MB / 0.5634 GB, free: 150.8 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches