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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002013/0.002013, allocations: 108.6 kB / 21.19 MB, free: 0.7578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002338/0.002338, allocations: 193.1 kB / 24.47 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 225.6 MB / 253.3 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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=5012,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=5012,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001564, allocations: 47.92 kB / 371.7 MB, free: 9.375 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2324, allocations: 52.18 MB / 423.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01529/0.2477, allocations: 14.25 MB / 438.1 MB, free: 388 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02583/0.2736, allocations: 20.38 MB / 458.5 MB, free: 11.92 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002587/0.2762, allocations: 185.9 kB / 458.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003278/0.2794, allocations: 1.126 MB / 459.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007318/0.2868, allocations: 2.346 MB / 462.2 MB, free: 8.246 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004506/0.2913, allocations: 1.457 MB / 463.6 MB, free: 6.785 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0107/0.302, allocations: 6.458 MB / 470.1 MB, free: 316 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006418/0.3026, allocations: 249 kB / 470.3 MB, free: 32 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001927/0.3045, allocations: 1.136 MB / 471.5 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001866/0.3064, allocations: 1.087 MB / 472.5 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000243/0.3066, allocations: 76 kB / 472.6 MB, free: 13.72 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004204/0.3108, allocations: 1.479 MB / 474.1 MB, free: 12.24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004788/0.3113, allocations: 321.7 kB / 474.4 MB, free: 11.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00175/0.3131, allocations: 1.327 MB / 475.7 MB, free: 10.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006434/0.3195, allocations: 3.694 MB / 479.4 MB, free: 6.879 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.3195, allocations: 3.938 kB / 479.4 MB, free: 6.875 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3195, allocations: 4 kB / 479.4 MB, free: 6.871 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.657e-05/0.3196, allocations: 0 / 479.4 MB, free: 6.871 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.00622/0.3258, allocations: 3.61 MB / 483 MB, free: 3.207 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.3258, allocations: 12.03 kB / 483.1 MB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005593/0.3264, allocations: 393.5 kB / 483.4 MB, free: 2.809 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00428/0.3307, allocations: 2.382 MB / 485.8 MB, free: 336 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.331e-05/0.3307, allocations: 33 kB / 485.9 MB, free: 300 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.3309, allocations: 55.95 kB / 485.9 MB, free: 244 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001598/0.3325, allocations: 0.7578 MB / 486.7 MB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.3325, allocations: 0 / 486.7 MB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.459e-05/0.3326, allocations: 23.98 kB / 486.7 MB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.378e-05/0.3326, allocations: 16 kB / 486.7 MB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001888/0.3345, allocations: 0.8592 MB / 487.6 MB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005574/0.34, allocations: 2.918 MB / 490.5 MB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001811/0.3419, allocations: 0.7285 MB / 491.2 MB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001539/0.3434, allocations: 0.8628 MB / 492.1 MB, free: 10 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02756/0.371, allocations: 13.73 MB / 0.4939 GB, free: 11.89 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001219/0.3722, allocations: 0.5957 MB / 0.4945 GB, free: 11.28 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.956e-06/0.3722, allocations: 0 / 0.4945 GB, free: 11.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01244/0.3846, allocations: 4.528 MB / 0.499 GB, free: 6.684 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.81e-05/0.3847, allocations: 68.41 kB / 0.499 GB, free: 6.605 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003561/0.3882, allocations: 2.688 MB / 0.5016 GB, free: 3.902 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001225/0.3884, allocations: 49.7 kB / 0.5017 GB, free: 3.848 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001276/0.3896, allocations: 1.308 MB / 0.503 GB, free: 2.535 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003691/0.39, allocations: 353 kB / 0.5033 GB, free: 2.188 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003759/0.3904, allocations: 238.4 kB / 0.5035 GB, free: 1.949 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.3905, allocations: 353.9 kB / 0.5039 GB, free: 1.598 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001286/0.3918, allocations: 474 kB / 0.5043 GB, free: 1.137 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001414/0.3932, allocations: 0.647 MB / 0.505 GB, free: 428 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002656/0.3959, allocations: 1.133 MB / 0.5061 GB, free: 15.22 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.3959, allocations: 0 / 0.5061 GB, free: 15.22 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004178/0.4001, allocations: 1.835 MB / 0.5079 GB, free: 13.34 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.4001, allocations: 15.44 kB / 0.5079 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001788/0.4003, allocations: 116 kB / 0.508 GB, free: 13.22 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007392/0.401, allocations: 268.4 kB / 0.5082 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008989/0.4019, allocations: 195.7 kB / 0.5084 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01068/0.4126, allocations: 13.23 MB / 0.5213 GB, free: 14.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001419/0.414, allocations: 87.89 kB / 0.5214 GB, free: 14.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001472/0.4142, allocations: 60.06 kB / 0.5215 GB, free: 14.22 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.0008444/0.415, allocations: 431.4 kB / 0.5219 GB, free: 13.79 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004706/0.4155, allocations: 381.6 kB / 0.5223 GB, free: 13.42 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004977/0.4205, allocations: 2.056 MB / 0.5243 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-05/0.4205, allocations: 11.98 kB / 0.5243 GB, free: 11.31 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.57e-05/0.4205, allocations: 4 kB / 0.5243 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.4205, allocations: 3.984 kB / 0.5243 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002186/0.4227, allocations: 1.522 MB / 0.5258 GB, free: 9.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001767/0.4229, allocations: 120 kB / 0.5259 GB, free: 9.613 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007502/0.4236, allocations: 135.8 kB / 0.526 GB, free: 9.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006933/0.4243, allocations: 264.3 kB / 0.5263 GB, free: 9.195 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.792e-05/0.4244, allocations: 43.98 kB / 0.5263 GB, free: 9.152 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1938/0.6182, allocations: 13.22 MB / 0.5392 GB, free: 104.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.6182, allocations: 0.5312 kB / 0.5392 GB, free: 104.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005166/0.6234, allocations: 2.407 MB / 0.5416 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009568/0.6244, allocations: 439.8 kB / 0.542 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003346/0.6247, allocations: 24.25 kB / 0.542 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009314/0.6256, allocations: 78.72 kB / 0.5421 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003536/0.626, allocations: 144.7 kB / 0.5422 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/0.6261, allocations: 52.48 kB / 0.5423 GB, free: 104.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002091/0.6282, allocations: 1.771 MB / 0.544 GB, free: 104.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6282, allocations: 0 / 0.544 GB, free: 104.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001464/0.6296, allocations: 0.6517 MB / 0.5446 GB, free: 104 MB / 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.0009991/0.6306, allocations: 0.8139 MB / 0.5454 GB, free: 103.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003372/0.634, allocations: 2.45 MB / 0.5478 GB, free: 102.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.634, allocations: 0 / 0.5478 GB, free: 102.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002009/0.636, allocations: 1.899 MB / 0.5497 GB, free: 100.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002371/0.6384, allocations: 0.611 MB / 0.5503 GB, free: 100.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005517/0.6439, allocations: 4.821 MB / 0.555 GB, free: 98.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007295/0.6446, allocations: 1.656 MB / 0.5566 GB, free: 96.97 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003418/0.645, allocations: 171.4 kB / 0.5568 GB, free: 96.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.213e-06/0.645, allocations: 4 kB / 0.5568 GB, free: 96.8 MB / 446.1 MB Notification: Performance of Templates: time 0.1155/0.7605, allocations: 154.3 MB / 0.7075 GB, free: 6.512 MB / 0.4981 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.10578306298703]