Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001315/0.001315, allocations: 109 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001363/0.001364, allocations: 210.8 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 247.6 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 59.91 kB / 359.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2363, allocations: 50.55 MB / 409.9 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01207/0.2484, allocations: 14.18 MB / 424.1 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02227/0.2707, allocations: 20.34 MB / 444.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002239/0.2729, allocations: 126.9 kB / 444.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003032/0.276, allocations: 1.117 MB / 445.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007147/0.2832, allocations: 2.297 MB / 448 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004978/0.2882, allocations: 1.439 MB / 449.4 MB, free: 9.973 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009374/0.2976, allocations: 6.488 MB / 455.9 MB, free: 3.465 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007794/0.2984, allocations: 432.5 kB / 456.3 MB, free: 3.008 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001553/0.3, allocations: 1.097 MB / 457.4 MB, free: 1.906 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00154/0.3015, allocations: 1.079 MB / 458.5 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002993/0.3019, allocations: 76 kB / 458.6 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00452/0.3064, allocations: 1.487 MB / 460.1 MB, free: 15.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004249/0.3068, allocations: 321.8 kB / 460.4 MB, free: 14.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00161/0.3085, allocations: 1.32 MB / 461.7 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005133/0.3136, allocations: 3.693 MB / 465.4 MB, free: 9.906 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.3136, allocations: 0 / 465.4 MB, free: 9.906 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3136, allocations: 0 / 465.4 MB, free: 9.906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.206e-05/0.3137, allocations: 0 / 465.4 MB, free: 9.906 MB / 382.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.005339/0.3191, allocations: 3.553 MB / 468.9 MB, free: 6.277 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.3191, allocations: 12.03 kB / 469 MB, free: 6.266 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004455/0.3196, allocations: 379.4 kB / 469.3 MB, free: 5.891 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003413/0.323, allocations: 2.528 MB / 471.9 MB, free: 3.285 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.131e-05/0.323, allocations: 36.98 kB / 471.9 MB, free: 3.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.3232, allocations: 55.84 kB / 471.9 MB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001454/0.3246, allocations: 0.7538 MB / 472.7 MB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.3247, allocations: 4 kB / 472.7 MB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.117e-05/0.3247, allocations: 19.98 kB / 472.7 MB, free: 2.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.097e-05/0.3248, allocations: 19.98 kB / 472.7 MB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00174/0.3265, allocations: 0.8514 MB / 473.6 MB, free: 1.539 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004672/0.3312, allocations: 2.974 MB / 476.6 MB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001687/0.3329, allocations: 0.7948 MB / 477.4 MB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001409/0.3343, allocations: 0.9527 MB / 478.3 MB, free: 12.74 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02764/0.362, allocations: 30.68 MB / 0.4971 GB, free: 9.809 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001183/0.3632, allocations: 0.5996 MB / 0.4977 GB, free: 9.199 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.806e-06/0.3632, allocations: 4 kB / 0.4977 GB, free: 9.195 MB / 430.1 MB Notification: Performance of matching and sorting (n=99): time 0.01202/0.3753, allocations: 5.228 MB / 0.5028 GB, free: 3.711 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.3753, allocations: 72.41 kB / 0.5028 GB, free: 3.629 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003027/0.3784, allocations: 2.692 MB / 0.5055 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.61e-05/0.3785, allocations: 41.7 kB / 0.5055 GB, free: 0.875 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001034/0.3795, allocations: 1.299 MB / 0.5068 GB, free: 15.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002699/0.3798, allocations: 339 kB / 0.5071 GB, free: 15.23 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003413/0.3802, allocations: 234.3 kB / 0.5073 GB, free: 15 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.3803, allocations: 341.9 kB / 0.5076 GB, free: 14.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00124/0.3815, allocations: 478 kB / 0.5081 GB, free: 14.19 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001333/0.3829, allocations: 0.6509 MB / 0.5087 GB, free: 13.47 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002528/0.3854, allocations: 1.13 MB / 0.5098 GB, free: 12.28 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3854, allocations: 0 / 0.5098 GB, free: 12.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004112/0.3895, allocations: 1.979 MB / 0.5118 GB, free: 10.22 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.173e-05/0.3896, allocations: 11.94 kB / 0.5118 GB, free: 10.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001775/0.3898, allocations: 120 kB / 0.5119 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006845/0.3905, allocations: 268.8 kB / 0.5122 GB, free: 9.801 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008954/0.3914, allocations: 187.7 kB / 0.5123 GB, free: 9.617 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008964/0.4004, allocations: 14.25 MB / 0.5263 GB, free: 9.965 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001463/0.4019, allocations: 87.97 kB / 0.5263 GB, free: 9.879 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002207/0.4021, allocations: 59.98 kB / 0.5264 GB, free: 9.82 MB / 462.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.0009282/0.403, allocations: 433.5 kB / 0.5268 GB, free: 9.387 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006161/0.4037, allocations: 363.6 kB / 0.5272 GB, free: 9.027 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005092/0.4088, allocations: 2.214 MB / 0.5293 GB, free: 6.73 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.238e-05/0.4088, allocations: 8 kB / 0.5293 GB, free: 6.723 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.4088, allocations: 4 kB / 0.5293 GB, free: 6.719 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.417e-06/0.4088, allocations: 3.984 kB / 0.5293 GB, free: 6.715 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002133/0.411, allocations: 1.543 MB / 0.5308 GB, free: 5.121 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000155/0.4111, allocations: 112 kB / 0.5309 GB, free: 5.012 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007475/0.4119, allocations: 135.8 kB / 0.5311 GB, free: 4.879 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006469/0.4126, allocations: 272.3 kB / 0.5313 GB, free: 4.582 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001029/0.4127, allocations: 43.98 kB / 0.5314 GB, free: 4.539 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2102/0.6229, allocations: 14.24 MB / 0.5453 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.623, allocations: 0 / 0.5453 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005628/0.6286, allocations: 2.537 MB / 0.5478 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009008/0.6295, allocations: 497.9 kB / 0.5482 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003238/0.6299, allocations: 20.86 kB / 0.5483 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/0.6309, allocations: 83.08 kB / 0.5483 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000355/0.6312, allocations: 146.6 kB / 0.5485 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.724e-05/0.6313, allocations: 50.88 kB / 0.5485 GB, free: 119 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001947/0.6333, allocations: 1.768 MB / 0.5502 GB, free: 118.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6333, allocations: 0 / 0.5502 GB, free: 118.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001432/0.6347, allocations: 0.6527 MB / 0.5509 GB, free: 118.3 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.001073/0.6358, allocations: 0.8103 MB / 0.5517 GB, free: 118.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003488/0.6393, allocations: 2.521 MB / 0.5541 GB, free: 116.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.6393, allocations: 0 / 0.5541 GB, free: 116.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002119/0.6415, allocations: 1.95 MB / 0.556 GB, free: 115 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002142/0.6436, allocations: 0.6281 MB / 0.5567 GB, free: 114.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005366/0.649, allocations: 4.726 MB / 0.5613 GB, free: 111.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007186/0.6497, allocations: 1.652 MB / 0.5629 GB, free: 110 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003653/0.6501, allocations: 171.4 kB / 0.563 GB, free: 109.9 MB / 462.1 MB Notification: Performance of SimCode: time 7.01e-07/0.6501, allocations: 0 / 0.563 GB, free: 109.9 MB / 462.1 MB Notification: Performance of Templates: time 0.1105/0.7606, allocations: 154.3 MB / 0.7137 GB, free: 3.379 MB / 0.4981 GB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches