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.001104/0.001104, allocations: 110.5 kB / 17.06 MB, free: 6.098 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.00114/0.00114, allocations: 200.1 kB / 18 MB, free: 5.168 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.33/1.33, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001027/0.001027, allocations: 39.94 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2392, allocations: 49.43 MB / 400.7 MB, free: 8.949 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01183/0.2511, allocations: 14.19 MB / 414.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02203/0.2731, allocations: 20.32 MB / 435.2 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002229/0.2754, allocations: 126.9 kB / 435.3 MB, free: 6.258 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003375/0.2788, allocations: 1.108 MB / 436.5 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007702/0.2865, allocations: 2.282 MB / 438.7 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004501/0.2911, allocations: 1.447 MB / 440.2 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01027/0.3014, allocations: 6.418 MB / 446.6 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007864/0.3022, allocations: 436.4 kB / 447 MB, free: 10.49 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001472/0.3037, allocations: 1.069 MB / 448.1 MB, free: 9.418 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00117/0.3049, allocations: 1.083 MB / 449.2 MB, free: 8.328 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001953/0.3051, allocations: 76 kB / 449.3 MB, free: 8.254 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004019/0.3091, allocations: 1.475 MB / 450.7 MB, free: 6.777 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004566/0.3096, allocations: 321.7 kB / 451 MB, free: 6.461 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001628/0.3112, allocations: 1.32 MB / 452.4 MB, free: 5.133 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005448/0.3167, allocations: 3.702 MB / 456.1 MB, free: 1.414 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3167, allocations: 3.938 kB / 456.1 MB, free: 1.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3167, allocations: 0 / 456.1 MB, free: 1.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.867e-05/0.3168, allocations: 4 kB / 456.1 MB, free: 1.406 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.004888/0.3217, allocations: 3.681 MB / 459.8 MB, free: 13.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.3217, allocations: 8.031 kB / 459.8 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004163/0.3221, allocations: 401.5 kB / 460.2 MB, free: 13.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003263/0.3254, allocations: 2.555 MB / 462.7 MB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.04e-05/0.3255, allocations: 32.98 kB / 462.7 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001182/0.3256, allocations: 51.95 kB / 462.8 MB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.3271, allocations: 0.7655 MB / 463.6 MB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.3271, allocations: 0 / 463.6 MB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.908e-05/0.3272, allocations: 19.98 kB / 463.6 MB, free: 9.742 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.886e-05/0.3272, allocations: 19.98 kB / 463.6 MB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001742/0.3289, allocations: 0.8553 MB / 464.5 MB, free: 8.867 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004631/0.3336, allocations: 2.967 MB / 467.4 MB, free: 5.828 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001713/0.3353, allocations: 0.7872 MB / 468.2 MB, free: 5.035 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001448/0.3368, allocations: 0.9449 MB / 469.2 MB, free: 4.086 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02987/0.3667, allocations: 30.08 MB / 499.2 MB, free: 1.895 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001154/0.3679, allocations: 0.5919 MB / 499.8 MB, free: 1.293 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.775e-06/0.3679, allocations: 0 / 499.8 MB, free: 1.293 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01225/0.3801, allocations: 5.293 MB / 0.4933 GB, free: 11.75 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.3802, allocations: 60.41 kB / 0.4933 GB, free: 11.68 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00346/0.3837, allocations: 2.7 MB / 0.496 GB, free: 8.965 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001775/0.3839, allocations: 41.7 kB / 0.496 GB, free: 8.918 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001128/0.385, allocations: 1.308 MB / 0.4973 GB, free: 7.605 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003276/0.3854, allocations: 353.1 kB / 0.4976 GB, free: 7.258 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003629/0.3857, allocations: 234.4 kB / 0.4979 GB, free: 7.02 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.3859, allocations: 345.9 kB / 0.4982 GB, free: 6.676 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.3872, allocations: 486 kB / 0.4986 GB, free: 6.199 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001363/0.3885, allocations: 0.647 MB / 0.4993 GB, free: 5.492 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002715/0.3913, allocations: 1.122 MB / 0.5004 GB, free: 4.309 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.3913, allocations: 8 kB / 0.5004 GB, free: 4.301 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00406/0.3954, allocations: 1.997 MB / 0.5023 GB, free: 2.227 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.3954, allocations: 4 kB / 0.5023 GB, free: 2.223 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001549/0.3956, allocations: 116.5 kB / 0.5024 GB, free: 2.109 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006742/0.3962, allocations: 268.4 kB / 0.5027 GB, free: 1.816 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008508/0.3971, allocations: 199.6 kB / 0.5029 GB, free: 1.621 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009257/0.4064, allocations: 14.25 MB / 0.5168 GB, free: 1.977 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001354/0.4077, allocations: 87.89 kB / 0.5169 GB, free: 1.891 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000159/0.4079, allocations: 56 kB / 0.5169 GB, free: 1.836 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.0008377/0.4088, allocations: 432.2 kB / 0.5174 GB, free: 1.406 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005568/0.4093, allocations: 393.6 kB / 0.5177 GB, free: 1.02 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004843/0.4142, allocations: 2.21 MB / 0.5199 GB, free: 14.73 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/0.4142, allocations: 12 kB / 0.5199 GB, free: 14.71 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.27e-05/0.4142, allocations: 11.98 kB / 0.5199 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.4142, allocations: 3.984 kB / 0.5199 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/0.4162, allocations: 1.539 MB / 0.5214 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001424/0.4164, allocations: 116 kB / 0.5215 GB, free: 13 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006931/0.4171, allocations: 135.8 kB / 0.5217 GB, free: 12.86 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006242/0.4177, allocations: 264.3 kB / 0.5219 GB, free: 12.57 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.271e-05/0.4178, allocations: 47.98 kB / 0.522 GB, free: 12.53 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1901/0.608, allocations: 14.24 MB / 0.5359 GB, free: 132.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.608, allocations: 4.938 kB / 0.5359 GB, free: 132.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005652/0.6137, allocations: 2.566 MB / 0.5384 GB, free: 132.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007968/0.6145, allocations: 0.5083 MB / 0.5389 GB, free: 132 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002966/0.6148, allocations: 20.5 kB / 0.5389 GB, free: 132 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009254/0.6157, allocations: 80.44 kB / 0.539 GB, free: 132 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000341/0.6161, allocations: 138.5 kB / 0.5391 GB, free: 132 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.577e-05/0.6162, allocations: 49.66 kB / 0.5391 GB, free: 132 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001912/0.6181, allocations: 1.773 MB / 0.5409 GB, free: 131.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6181, allocations: 0 / 0.5409 GB, free: 131.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001264/0.6194, allocations: 0.6551 MB / 0.5415 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.000947/0.6203, allocations: 0.8104 MB / 0.5423 GB, free: 131.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003426/0.6238, allocations: 2.518 MB / 0.5448 GB, free: 129.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.6238, allocations: 0 / 0.5448 GB, free: 129.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001981/0.6258, allocations: 1.959 MB / 0.5467 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.002098/0.6279, allocations: 0.6179 MB / 0.5473 GB, free: 128.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005096/0.633, allocations: 4.754 MB / 0.5519 GB, free: 125.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007122/0.6337, allocations: 1.659 MB / 0.5535 GB, free: 123.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009631/0.6347, allocations: 387.2 kB / 0.5539 GB, free: 123.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002516/0.6349, allocations: 163.4 kB / 0.5541 GB, free: 123.2 MB / 462.1 MB Notification: Performance of SimCode: time 9.22e-07/0.6349, allocations: 0 / 0.5541 GB, free: 123.2 MB / 462.1 MB Notification: Performance of Templates: time 0.04803/0.683, allocations: 37.12 MB / 0.5903 GB, free: 86.43 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