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.001303/0.001303, allocations: 101.5 kB / 18.39 MB, free: 4.652 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.001345/0.001346, allocations: 189.1 kB / 19.33 MB, free: 3.727 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.252/1.252, allocations: 205.1 MB / 225.2 MB, free: 12.18 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.001267/0.001267, allocations: 47.94 kB / 329.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07627/0.07755, allocations: 46.6 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1723/0.2499, allocations: 13.53 MB / 389.3 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02033/0.2702, allocations: 19.38 MB / 408.7 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002676/0.273, allocations: 126.8 kB / 408.8 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003282/0.2763, allocations: 1.085 MB / 409.9 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008186/0.2845, allocations: 2.256 MB / 412.2 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005124/0.2896, allocations: 1.388 MB / 413.6 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009834/0.2995, allocations: 6.279 MB / 419.8 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007844/0.3003, allocations: 431 kB / 420.3 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001737/0.3021, allocations: 1.007 MB / 421.3 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001377/0.3035, allocations: 1.06 MB / 422.3 MB, free: 312 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000219/0.3037, allocations: 75.62 kB / 422.4 MB, free: 312 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004303/0.308, allocations: 1.155 MB / 423.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000358/0.3084, allocations: 329.6 kB / 423.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001588/0.31, allocations: 1.324 MB / 425.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004825/0.3148, allocations: 3.72 MB / 428.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.3148, allocations: 4 kB / 428.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3149, allocations: 3.938 kB / 428.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.722e-05/0.3149, allocations: 0 / 428.9 MB, free: 10.45 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.004703/0.3196, allocations: 3.58 MB / 432.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.3197, allocations: 8.031 kB / 432.5 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00037/0.32, allocations: 379.4 kB / 432.9 MB, free: 6.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003107/0.3232, allocations: 2.536 MB / 435.4 MB, free: 3.797 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.682e-05/0.3232, allocations: 40.92 kB / 435.5 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/0.3233, allocations: 55.91 kB / 435.5 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001369/0.3247, allocations: 0.7538 MB / 436.3 MB, free: 2.938 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.3247, allocations: 0 / 436.3 MB, free: 2.938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.929e-05/0.3248, allocations: 20 kB / 436.3 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.951e-05/0.3248, allocations: 19.98 kB / 436.3 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001623/0.3265, allocations: 0.8631 MB / 437.2 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004355/0.3308, allocations: 2.975 MB / 440.1 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001597/0.3325, allocations: 0.7949 MB / 440.9 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001317/0.3338, allocations: 0.9525 MB / 441.9 MB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02639/0.3602, allocations: 30.12 MB / 472 MB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00111/0.3613, allocations: 0.6035 MB / 472.6 MB, free: 10.39 MB / 398.1 MB Notification: Performance of pre-optimization done (n=96): time 2.524e-06/0.3614, allocations: 0 / 472.6 MB, free: 10.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=99): time 0.01136/0.3727, allocations: 5.23 MB / 477.8 MB, free: 4.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.058e-05/0.3728, allocations: 68.39 kB / 477.9 MB, free: 4.832 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002844/0.3757, allocations: 2.709 MB / 480.6 MB, free: 2.109 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.817e-05/0.3758, allocations: 49.64 kB / 480.7 MB, free: 2.055 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009511/0.3767, allocations: 1.299 MB / 482 MB, free: 0.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002468/0.377, allocations: 335.2 kB / 482.3 MB, free: 428 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003044/0.3773, allocations: 230.2 kB / 482.5 MB, free: 192 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.3774, allocations: 349.9 kB / 482.9 MB, free: 15.84 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001169/0.3786, allocations: 474 kB / 483.3 MB, free: 15.38 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001288/0.3799, allocations: 0.647 MB / 484 MB, free: 14.66 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002431/0.3823, allocations: 1.137 MB / 485.1 MB, free: 13.46 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-06/0.3823, allocations: 0 / 485.1 MB, free: 13.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00383/0.3862, allocations: 1.973 MB / 487.1 MB, free: 11.41 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.3862, allocations: 11.97 kB / 487.1 MB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000156/0.3864, allocations: 120 kB / 487.2 MB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006377/0.387, allocations: 272.4 kB / 487.5 MB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008206/0.3879, allocations: 195.7 kB / 487.7 MB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008481/0.3964, allocations: 14.25 MB / 0.4902 GB, free: 11.15 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001373/0.3978, allocations: 87.95 kB / 0.4902 GB, free: 11.06 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/0.3979, allocations: 60 kB / 0.4903 GB, free: 11 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.0007827/0.3987, allocations: 429.5 kB / 0.4907 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004472/0.3992, allocations: 379.4 kB / 0.4911 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004558/0.4037, allocations: 2.219 MB / 0.4932 GB, free: 7.902 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.4037, allocations: 8 kB / 0.4932 GB, free: 7.895 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.4038, allocations: 4 kB / 0.4932 GB, free: 7.891 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.4038, allocations: 7.984 kB / 0.4933 GB, free: 7.883 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001759/0.4055, allocations: 1.555 MB / 0.4948 GB, free: 6.273 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001498/0.4057, allocations: 112 kB / 0.4949 GB, free: 6.164 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006881/0.4064, allocations: 139.8 kB / 0.495 GB, free: 6.027 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005883/0.407, allocations: 264.3 kB / 0.4953 GB, free: 5.738 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-05/0.4071, allocations: 47.97 kB / 0.4953 GB, free: 5.691 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00854/0.4156, allocations: 14.24 MB / 0.5092 GB, free: 6.055 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.4157, allocations: 0 / 0.5092 GB, free: 6.055 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005331/0.421, allocations: 2.551 MB / 0.5117 GB, free: 3.414 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008967/0.4219, allocations: 0.4888 MB / 0.5122 GB, free: 2.902 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002958/0.4222, allocations: 16 kB / 0.5122 GB, free: 2.887 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009403/0.4232, allocations: 87.88 kB / 0.5123 GB, free: 2.801 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003388/0.4235, allocations: 132.8 kB / 0.5124 GB, free: 2.672 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.713e-05/0.4236, allocations: 51.98 kB / 0.5125 GB, free: 2.621 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002172/0.4258, allocations: 1.782 MB / 0.5142 GB, free: 0.832 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4258, allocations: 4 kB / 0.5142 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00143/0.4273, allocations: 0.6483 MB / 0.5148 GB, free: 184 kB / 446.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.001128/0.4284, allocations: 0.8273 MB / 0.5156 GB, free: 15.35 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003828/0.4322, allocations: 2.522 MB / 0.5181 GB, free: 12.67 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.4323, allocations: 4.062 kB / 0.5181 GB, free: 12.66 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002344/0.4346, allocations: 1.952 MB / 0.52 GB, free: 10.56 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001763/0.4364, allocations: 0.5287 MB / 0.5205 GB, free: 10.03 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006239/0.4426, allocations: 4.733 MB / 0.5252 GB, free: 5.254 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/0.4437, allocations: 1.662 MB / 0.5268 GB, free: 3.566 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004032/0.4441, allocations: 175.4 kB / 0.5269 GB, free: 3.395 MB / 462.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4441, allocations: 0 / 0.5269 GB, free: 3.395 MB / 462.1 MB Notification: Performance of Templates: time 0.336/0.7801, allocations: 155.3 MB / 0.6786 GB, free: 36.04 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/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