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.001276/0.001276, allocations: 69.72 kB / 21.24 MB, free: 0.5547 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.001391/0.001391, allocations: 162.5 kB / 24.5 MB, free: 3.711 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.421/1.421, allocations: 177.2 MB / 204.9 MB, free: 8.992 MB / 190.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.001558/0.001558, allocations: 55.3 kB / 325.6 MB, free: 272 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08495/0.08651, allocations: 53.34 MB / 378.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.0127/0.09921, allocations: 11.99 MB / 390.9 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02173/0.1209, allocations: 17.57 MB / 408.5 MB, free: 1.973 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001249/0.1222, allocations: 193.8 kB / 408.6 MB, free: 1.781 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002242/0.1244, allocations: 1.032 MB / 409.7 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005313/0.1297, allocations: 2.321 MB / 412 MB, free: 14.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003431/0.1332, allocations: 1.422 MB / 413.4 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009375/0.1425, allocations: 6.552 MB / 420 MB, free: 6.402 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004652/0.143, allocations: 249 kB / 420.2 MB, free: 6.125 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001416/0.1444, allocations: 1.143 MB / 421.4 MB, free: 4.977 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001337/0.1458, allocations: 1.036 MB / 422.4 MB, free: 3.934 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001938/0.146, allocations: 79.94 kB / 422.5 MB, free: 3.855 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002939/0.1489, allocations: 1.21 MB / 423.7 MB, free: 2.645 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003278/0.1492, allocations: 321.7 kB / 424 MB, free: 2.328 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001024/0.1502, allocations: 0.9702 MB / 425 MB, free: 1.352 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004227/0.1545, allocations: 3.737 MB / 428.7 MB, free: 13.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.1545, allocations: 0 / 428.7 MB, free: 13.59 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1545, allocations: 0 / 428.7 MB, free: 13.59 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.543e-05/0.1545, allocations: 0 / 428.7 MB, free: 13.59 MB / 398.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.005085/0.1596, allocations: 3.617 MB / 432.3 MB, free: 9.922 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.1596, allocations: 12.03 kB / 432.3 MB, free: 9.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00042/0.16, allocations: 397.5 kB / 432.7 MB, free: 9.52 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00369/0.1637, allocations: 2.378 MB / 435.1 MB, free: 7.043 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.638e-05/0.1638, allocations: 33 kB / 435.1 MB, free: 7.008 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.1639, allocations: 51.98 kB / 435.2 MB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001505/0.1654, allocations: 0.7655 MB / 435.9 MB, free: 6.184 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.1654, allocations: 0 / 435.9 MB, free: 6.184 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.035e-05/0.1655, allocations: 19.98 kB / 436 MB, free: 6.164 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.04e-05/0.1655, allocations: 19.98 kB / 436 MB, free: 6.145 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00184/0.1673, allocations: 0.8553 MB / 436.8 MB, free: 5.289 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004581/0.1719, allocations: 2.686 MB / 439.5 MB, free: 2.562 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001731/0.1737, allocations: 0.7137 MB / 440.2 MB, free: 1.844 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001487/0.1751, allocations: 0.868 MB / 441.1 MB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02568/0.2008, allocations: 13.66 MB / 454.8 MB, free: 2.926 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001246/0.2021, allocations: 0.6035 MB / 455.4 MB, free: 2.309 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.945e-06/0.2021, allocations: 0 / 455.4 MB, free: 2.309 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01261/0.2147, allocations: 4.528 MB / 459.9 MB, free: 13.71 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.61e-05/0.2147, allocations: 72.41 kB / 460 MB, free: 13.63 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003799/0.2185, allocations: 2.696 MB / 462.7 MB, free: 10.92 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.984e-05/0.2186, allocations: 41.7 kB / 462.7 MB, free: 10.87 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001303/0.2199, allocations: 1.308 MB / 464 MB, free: 9.559 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003391/0.2203, allocations: 353 kB / 464.4 MB, free: 9.211 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003878/0.2207, allocations: 234.4 kB / 464.6 MB, free: 8.977 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.2208, allocations: 345.9 kB / 464.9 MB, free: 8.633 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001478/0.2223, allocations: 478 kB / 465.4 MB, free: 8.168 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001531/0.2238, allocations: 0.647 MB / 466 MB, free: 7.449 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002854/0.2267, allocations: 1.129 MB / 467.2 MB, free: 6.258 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.2267, allocations: 4 kB / 467.2 MB, free: 6.254 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004202/0.2309, allocations: 1.827 MB / 469 MB, free: 4.391 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.2309, allocations: 8 kB / 469 MB, free: 4.383 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001826/0.2311, allocations: 123.9 kB / 469.1 MB, free: 4.262 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007107/0.2318, allocations: 272.8 kB / 469.4 MB, free: 3.965 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009291/0.2327, allocations: 199.7 kB / 469.6 MB, free: 3.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1763/0.4091, allocations: 12.97 MB / 482.6 MB, free: 78.87 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001358/0.4104, allocations: 89.66 kB / 482.6 MB, free: 78.87 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/0.4105, allocations: 59.61 kB / 482.7 MB, free: 78.87 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.0006803/0.4112, allocations: 429.3 kB / 483.1 MB, free: 78.75 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003197/0.4115, allocations: 391.6 kB / 483.5 MB, free: 78.74 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004466/0.416, allocations: 2.055 MB / 485.6 MB, free: 78.51 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.416, allocations: 10.41 kB / 485.6 MB, free: 78.51 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/0.416, allocations: 5.828 kB / 485.6 MB, free: 78.51 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.416, allocations: 3.703 kB / 485.6 MB, free: 78.51 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001646/0.4177, allocations: 1.3 MB / 486.9 MB, free: 77.94 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001507/0.4178, allocations: 116.5 kB / 487 MB, free: 77.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007456/0.4186, allocations: 137.9 kB / 487.1 MB, free: 77.92 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005965/0.4192, allocations: 266.1 kB / 487.4 MB, free: 77.79 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.144e-05/0.4192, allocations: 46.19 kB / 487.4 MB, free: 77.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005914/0.4252, allocations: 12.97 MB / 0.4887 GB, free: 65.16 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4252, allocations: 3.438 kB / 0.4887 GB, free: 65.16 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005206/0.4304, allocations: 2.409 MB / 0.491 GB, free: 64.31 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008883/0.4313, allocations: 443.3 kB / 0.4915 GB, free: 64.04 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002688/0.4315, allocations: 24.11 kB / 0.4915 GB, free: 64.03 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/0.4325, allocations: 82.89 kB / 0.4916 GB, free: 64.02 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000335/0.4329, allocations: 143.9 kB / 0.4917 GB, free: 63.99 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.433, allocations: 45.94 kB / 0.4917 GB, free: 63.99 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002106/0.4351, allocations: 1.772 MB / 0.4935 GB, free: 63.34 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4351, allocations: 3 kB / 0.4935 GB, free: 63.34 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001402/0.4365, allocations: 0.657 MB / 0.4941 GB, free: 63.3 MB / 430.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.0009002/0.4374, allocations: 0.8181 MB / 0.4949 GB, free: 63.14 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003302/0.4407, allocations: 2.45 MB / 0.4973 GB, free: 61.53 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.4407, allocations: 0 / 0.4973 GB, free: 61.53 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00201/0.4427, allocations: 1.903 MB / 0.4992 GB, free: 60.08 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002072/0.4448, allocations: 0.6209 MB / 0.4998 GB, free: 59.81 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004759/0.4495, allocations: 4.747 MB / 0.5044 GB, free: 55.43 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006669/0.4502, allocations: 1.104 MB / 0.5055 GB, free: 54.29 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008659/0.4511, allocations: 391.4 kB / 0.5059 GB, free: 53.9 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002382/0.4513, allocations: 172.5 kB / 0.506 GB, free: 53.73 MB / 430.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4513, allocations: 0 / 0.506 GB, free: 53.73 MB / 430.1 MB Notification: Performance of Templates: time 0.04997/0.5013, allocations: 39.12 MB / 0.5442 GB, free: 15.14 MB / 430.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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/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: 5.9799115610076115]