Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001856/0.001856, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002345/0.002345, allocations: 208.3 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.498/1.498, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 47.92 kB / 378.2 MB, free: 2.508 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.244/0.2456, allocations: 53.37 MB / 431.6 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01528/0.2609, allocations: 11.97 MB / 443.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02436/0.2853, allocations: 17.58 MB / 461.1 MB, free: 9.074 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001957/0.2872, allocations: 189.8 kB / 461.3 MB, free: 8.887 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002789/0.29, allocations: 1.03 MB / 462.3 MB, free: 7.855 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007981/0.298, allocations: 2.324 MB / 464.7 MB, free: 5.512 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00507/0.3031, allocations: 1.414 MB / 466.1 MB, free: 4.098 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01106/0.3141, allocations: 6.544 MB / 472.6 MB, free: 13.53 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006024/0.3147, allocations: 257 kB / 472.9 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001775/0.3165, allocations: 1.136 MB / 474 MB, free: 12.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001464/0.318, allocations: 1.091 MB / 475.1 MB, free: 11.01 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001717/0.3181, allocations: 76 kB / 475.2 MB, free: 10.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00332/0.3215, allocations: 1.233 MB / 476.4 MB, free: 9.699 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003635/0.3218, allocations: 333.7 kB / 476.7 MB, free: 9.371 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001178/0.323, allocations: 0.9779 MB / 477.7 MB, free: 8.387 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005804/0.3288, allocations: 3.737 MB / 481.4 MB, free: 4.633 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.3288, allocations: 0 / 481.4 MB, free: 4.633 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.3288, allocations: 4 kB / 481.4 MB, free: 4.629 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.794e-05/0.3289, allocations: 0 / 481.4 MB, free: 4.629 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.006153/0.3351, allocations: 3.61 MB / 485.1 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.3351, allocations: 12.03 kB / 485.1 MB, free: 0.9531 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004667/0.3356, allocations: 393.5 kB / 485.4 MB, free: 0.5664 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00416/0.3397, allocations: 2.386 MB / 487.8 MB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.241e-05/0.3398, allocations: 37 kB / 487.9 MB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/0.3399, allocations: 48 kB / 487.9 MB, free: 14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001642/0.3416, allocations: 0.7577 MB / 488.7 MB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.3416, allocations: 7.969 kB / 488.7 MB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.714e-05/0.3416, allocations: 20 kB / 488.7 MB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.092e-05/0.3417, allocations: 19.98 kB / 488.7 MB, free: 13.19 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001935/0.3436, allocations: 0.8553 MB / 489.6 MB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005292/0.3489, allocations: 2.678 MB / 492.3 MB, free: 9.605 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001784/0.3507, allocations: 0.7129 MB / 493 MB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001548/0.3522, allocations: 0.8645 MB / 493.8 MB, free: 8.023 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02868/0.3809, allocations: 13.68 MB / 0.4956 GB, free: 9.957 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001314/0.3822, allocations: 0.5996 MB / 0.4962 GB, free: 9.348 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.246e-06/0.3822, allocations: 4 kB / 0.4962 GB, free: 9.344 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01254/0.3948, allocations: 4.521 MB / 0.5006 GB, free: 4.758 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.104e-05/0.3948, allocations: 72.39 kB / 0.5007 GB, free: 4.672 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003536/0.3984, allocations: 2.696 MB / 0.5033 GB, free: 1.961 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001014/0.3985, allocations: 41.7 kB / 0.5034 GB, free: 1.914 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001259/0.3997, allocations: 1.312 MB / 0.5046 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000335/0.4001, allocations: 353 kB / 0.505 GB, free: 256 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000392/0.4005, allocations: 234.4 kB / 0.5052 GB, free: 16 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.4006, allocations: 345.9 kB / 0.5055 GB, free: 15.67 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001326/0.402, allocations: 474 kB / 0.506 GB, free: 15.21 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001465/0.4034, allocations: 0.649 MB / 0.5066 GB, free: 14.5 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002794/0.4062, allocations: 1.133 MB / 0.5077 GB, free: 13.3 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.909e-06/0.4062, allocations: 4 kB / 0.5077 GB, free: 13.3 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004431/0.4107, allocations: 1.834 MB / 0.5095 GB, free: 11.43 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.4107, allocations: 8 kB / 0.5095 GB, free: 11.42 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001777/0.4109, allocations: 124.5 kB / 0.5096 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007731/0.4116, allocations: 268.4 kB / 0.5099 GB, free: 11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009533/0.4126, allocations: 191.7 kB / 0.5101 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01101/0.4236, allocations: 12.98 MB / 0.5228 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001464/0.4251, allocations: 95.77 kB / 0.5229 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001367/0.4252, allocations: 60.06 kB / 0.5229 GB, free: 12.67 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.0008775/0.4261, allocations: 436.2 kB / 0.5233 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004868/0.4266, allocations: 385.6 kB / 0.5237 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005187/0.4318, allocations: 2.048 MB / 0.5257 GB, free: 9.766 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.4318, allocations: 8 kB / 0.5257 GB, free: 9.758 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/0.4318, allocations: 4 kB / 0.5257 GB, free: 9.754 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.129e-05/0.4318, allocations: 3.984 kB / 0.5257 GB, free: 9.75 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001911/0.4337, allocations: 1.297 MB / 0.527 GB, free: 8.422 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001691/0.4339, allocations: 119.9 kB / 0.5271 GB, free: 8.305 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007715/0.4346, allocations: 139.8 kB / 0.5272 GB, free: 8.168 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007205/0.4354, allocations: 260.3 kB / 0.5275 GB, free: 7.883 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/0.4355, allocations: 47.97 kB / 0.5275 GB, free: 7.836 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1915/0.627, allocations: 12.98 MB / 0.5402 GB, free: 98.61 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.627, allocations: 0.5625 kB / 0.5402 GB, free: 98.61 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005199/0.6322, allocations: 2.405 MB / 0.5425 GB, free: 98.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009646/0.6331, allocations: 437.1 kB / 0.543 GB, free: 98.42 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003123/0.6334, allocations: 19.83 kB / 0.543 GB, free: 98.42 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009998/0.6344, allocations: 84.17 kB / 0.5431 GB, free: 98.42 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00033/0.6348, allocations: 142.7 kB / 0.5432 GB, free: 98.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.6349, allocations: 55.44 kB / 0.5432 GB, free: 98.39 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002177/0.6371, allocations: 1.767 MB / 0.545 GB, free: 97.75 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6371, allocations: 2.812 kB / 0.545 GB, free: 97.75 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001305/0.6384, allocations: 0.6557 MB / 0.5456 GB, free: 97.71 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.00101/0.6394, allocations: 0.8093 MB / 0.5464 GB, free: 97.56 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003264/0.6426, allocations: 2.46 MB / 0.5488 GB, free: 95.99 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.6426, allocations: 0 / 0.5488 GB, free: 95.99 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001937/0.6446, allocations: 1.902 MB / 0.5507 GB, free: 94.56 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001956/0.6465, allocations: 0.615 MB / 0.5513 GB, free: 94.32 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004786/0.6513, allocations: 4.76 MB / 0.5559 GB, free: 90.24 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006642/0.652, allocations: 1.103 MB / 0.557 GB, free: 89.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009175/0.6529, allocations: 394.8 kB / 0.5574 GB, free: 89.17 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002522/0.6531, allocations: 167.4 kB / 0.5575 GB, free: 89.01 MB / 446.1 MB Notification: Performance of SimCode: time 6.11e-07/0.6532, allocations: 0 / 0.5575 GB, free: 89.01 MB / 446.1 MB Notification: Performance of Templates: time 0.0525/0.7057, allocations: 43.13 MB / 0.5996 GB, free: 46.62 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 6.308331758715212]