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.001508/0.001508, allocations: 113.2 kB / 17.73 MB, free: 5.344 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.001778/0.001778, allocations: 188.2 kB / 18.66 MB, free: 4.418 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.412/1.412, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001252/0.001252, allocations: 55.92 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07738/0.07864, allocations: 46.6 MB / 375.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1859/0.2646, allocations: 13.52 MB / 388.6 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02006/0.2847, allocations: 19.37 MB / 408 MB, free: 7.422 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001998/0.2867, allocations: 125.5 kB / 408.1 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002755/0.2895, allocations: 1.096 MB / 409.2 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006978/0.2965, allocations: 2.249 MB / 411.5 MB, free: 5.355 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004302/0.3008, allocations: 1.384 MB / 412.9 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009314/0.3102, allocations: 6.283 MB / 419.2 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006615/0.3109, allocations: 435.9 kB / 419.6 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001511/0.3124, allocations: 1 MB / 420.6 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001231/0.3136, allocations: 1.059 MB / 421.6 MB, free: 356 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002181/0.3138, allocations: 76.38 kB / 421.7 MB, free: 356 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004105/0.318, allocations: 1.156 MB / 422.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002755/0.3182, allocations: 333.6 kB / 423.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001253/0.3195, allocations: 1.327 MB / 424.5 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004712/0.3242, allocations: 3.706 MB / 428.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3243, allocations: 4 kB / 428.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3243, allocations: 4 kB / 428.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.287e-05/0.3243, allocations: 0 / 428.2 MB, free: 10.5 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.004973/0.3293, allocations: 3.588 MB / 431.8 MB, free: 6.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.3293, allocations: 12.03 kB / 431.8 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003876/0.3297, allocations: 379.4 kB / 432.2 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003405/0.3332, allocations: 2.54 MB / 434.7 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.192e-05/0.3332, allocations: 36.94 kB / 434.8 MB, free: 3.793 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.3333, allocations: 55.89 kB / 434.8 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.3349, allocations: 0.7577 MB / 435.6 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.3349, allocations: 0 / 435.6 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.11e-05/0.335, allocations: 16 kB / 435.6 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.846e-05/0.335, allocations: 19.98 kB / 435.6 MB, free: 2.938 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001824/0.3368, allocations: 0.8592 MB / 436.5 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004592/0.3414, allocations: 2.978 MB / 439.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001757/0.3432, allocations: 0.7927 MB / 440.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001479/0.3447, allocations: 0.9564 MB / 441.2 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02908/0.3738, allocations: 30.12 MB / 471.3 MB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001239/0.3751, allocations: 0.5958 MB / 471.9 MB, free: 10.44 MB / 398.1 MB Notification: Performance of pre-optimization done (n=96): time 4.358e-06/0.3751, allocations: 0 / 471.9 MB, free: 10.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=99): time 0.01241/0.3875, allocations: 5.237 MB / 477.2 MB, free: 4.949 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.848e-05/0.3876, allocations: 68.39 kB / 477.2 MB, free: 4.871 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003197/0.3908, allocations: 2.717 MB / 480 MB, free: 2.141 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.863e-05/0.3909, allocations: 41.7 kB / 480 MB, free: 2.094 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001087/0.392, allocations: 1.299 MB / 481.3 MB, free: 0.7891 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002732/0.3922, allocations: 335.2 kB / 481.6 MB, free: 468 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003463/0.3926, allocations: 226.3 kB / 481.8 MB, free: 236 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.3928, allocations: 349.9 kB / 482.2 MB, free: 15.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001314/0.3941, allocations: 474 kB / 482.6 MB, free: 15.42 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001385/0.3955, allocations: 0.647 MB / 483.3 MB, free: 14.7 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002674/0.3982, allocations: 1.13 MB / 484.4 MB, free: 13.51 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.3982, allocations: 4 kB / 484.4 MB, free: 13.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004093/0.4023, allocations: 1.987 MB / 486.4 MB, free: 11.44 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.4023, allocations: 11.94 kB / 486.4 MB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001731/0.4025, allocations: 124 kB / 486.5 MB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006732/0.4032, allocations: 264.4 kB / 486.8 MB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009039/0.4041, allocations: 195.7 kB / 487 MB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009534/0.4136, allocations: 14.25 MB / 0.4895 GB, free: 11.19 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001453/0.4151, allocations: 92.83 kB / 0.4896 GB, free: 11.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.4152, allocations: 56 kB / 0.4896 GB, free: 11.05 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.0008302/0.4161, allocations: 429.5 kB / 0.49 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003882/0.4165, allocations: 371.5 kB / 0.4904 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004846/0.4213, allocations: 2.218 MB / 0.4926 GB, free: 7.953 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/0.4214, allocations: 8 kB / 0.4926 GB, free: 7.945 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.4214, allocations: 4 kB / 0.4926 GB, free: 7.941 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.4214, allocations: 3.984 kB / 0.4926 GB, free: 7.938 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001958/0.4234, allocations: 1.555 MB / 0.4941 GB, free: 6.328 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001587/0.4235, allocations: 120 kB / 0.4942 GB, free: 6.211 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007579/0.4243, allocations: 135.8 kB / 0.4943 GB, free: 6.078 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006331/0.4249, allocations: 272.3 kB / 0.4946 GB, free: 5.781 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.031e-05/0.425, allocations: 39.98 kB / 0.4946 GB, free: 5.742 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009441/0.4345, allocations: 14.25 MB / 0.5086 GB, free: 6.094 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.4345, allocations: 0 / 0.5086 GB, free: 6.094 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005479/0.44, allocations: 2.547 MB / 0.511 GB, free: 3.457 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008398/0.4409, allocations: 0.4888 MB / 0.5115 GB, free: 2.945 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003475/0.4412, allocations: 16 kB / 0.5115 GB, free: 2.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.4422, allocations: 83.89 kB / 0.5116 GB, free: 2.848 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003628/0.4426, allocations: 140.8 kB / 0.5118 GB, free: 2.711 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.4427, allocations: 51.98 kB / 0.5118 GB, free: 2.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002314/0.445, allocations: 1.782 MB / 0.5135 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.445, allocations: 0 / 0.5135 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00148/0.4465, allocations: 0.6562 MB / 0.5142 GB, free: 220 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.001346/0.4479, allocations: 0.8166 MB / 0.515 GB, free: 15.39 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004479/0.4524, allocations: 2.522 MB / 0.5174 GB, free: 12.71 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.4524, allocations: 3.938 kB / 0.5175 GB, free: 12.71 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002766/0.4552, allocations: 1.948 MB / 0.5194 GB, free: 10.61 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002185/0.4574, allocations: 0.5209 MB / 0.5199 GB, free: 10.08 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006658/0.464, allocations: 4.68 MB / 0.5244 GB, free: 5.371 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001145/0.4652, allocations: 1.666 MB / 0.5261 GB, free: 3.68 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001106/0.4663, allocations: 387.4 kB / 0.5264 GB, free: 3.297 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003079/0.4667, allocations: 175.4 kB / 0.5266 GB, free: 3.125 MB / 462.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4667, allocations: 3.938 kB / 0.5266 GB, free: 3.121 MB / 462.1 MB Notification: Performance of Templates: time 0.2577/0.7244, allocations: 37.28 MB / 0.563 GB, free: 151.5 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