Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009895/0.0009895, allocations: 91.61 kB / 22.19 MB, free: 2.379 MB / 18.57 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.001241/0.001241, allocations: 156.5 kB / 25.44 MB, free: 8.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.825/0.825, allocations: 158.6 MB / 187.2 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.162e-06/1.162e-06, allocations: 0 / 299.7 MB, free: 6.938 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.99e-05/2.106e-05, allocations: 2.281 kB / 299.7 MB, free: 6.934 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.00767/0.007691, allocations: 11.42 MB / 311.1 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01407/0.02176, allocations: 16.75 MB / 327.8 MB, free: 10.65 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001567/0.02333, allocations: 197.8 kB / 328 MB, free: 10.45 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001897/0.02522, allocations: 1.001 MB / 329 MB, free: 9.449 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00437/0.02959, allocations: 2.374 MB / 331.4 MB, free: 7.055 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002978/0.03257, allocations: 1.39 MB / 332.8 MB, free: 5.656 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005686/0.03826, allocations: 6.495 MB / 339.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003793/0.03864, allocations: 249 kB / 339.5 MB, free: 14.87 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001086/0.03972, allocations: 1.41 MB / 341 MB, free: 13.45 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006056/0.04033, allocations: 0.7475 MB / 341.7 MB, free: 12.7 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.372e-05/0.04042, allocations: 76 kB / 341.8 MB, free: 12.63 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001771/0.04219, allocations: 1.093 MB / 342.9 MB, free: 11.53 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001704/0.04236, allocations: 325.6 kB / 343.2 MB, free: 11.21 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004867/0.04285, allocations: 0.7204 MB / 343.9 MB, free: 10.49 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002926/0.04578, allocations: 3.717 MB / 347.6 MB, free: 6.758 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.04578, allocations: 0 / 347.6 MB, free: 6.758 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.04578, allocations: 0 / 347.6 MB, free: 6.758 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.782e-05/0.04581, allocations: 0 / 347.6 MB, free: 6.758 MB / 330.7 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.002905/0.04872, allocations: 3.594 MB / 351.2 MB, free: 3.105 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.04875, allocations: 15.98 kB / 351.2 MB, free: 3.09 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002749/0.04903, allocations: 401.5 kB / 351.6 MB, free: 2.695 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00234/0.05137, allocations: 2.394 MB / 354 MB, free: 208 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.507e-05/0.05139, allocations: 37 kB / 354.1 MB, free: 168 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.36e-05/0.05148, allocations: 51.98 kB / 354.1 MB, free: 116 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.123/0.1744, allocations: 0.7593 MB / 354.9 MB, free: 62.2 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.904e-05/0.1745, allocations: 5.594 kB / 354.9 MB, free: 62.2 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.768e-05/0.1745, allocations: 17.77 kB / 354.9 MB, free: 62.19 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.881e-05/0.1745, allocations: 23.78 kB / 354.9 MB, free: 62.18 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.1756, allocations: 0.8566 MB / 355.8 MB, free: 61.96 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003158/0.1788, allocations: 2.671 MB / 358.4 MB, free: 60.79 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009667/0.1798, allocations: 0.7269 MB / 359.2 MB, free: 60.51 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008691/0.1806, allocations: 0.8603 MB / 360 MB, free: 60.21 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0133/0.1939, allocations: 13.71 MB / 373.7 MB, free: 51.57 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005944/0.1945, allocations: 0.5966 MB / 374.3 MB, free: 50.98 MB / 330.7 MB Notification: Performance of pre-optimization done (n=96): time 2.745e-06/0.1945, allocations: 0 / 374.3 MB, free: 50.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=99): time 0.005483/0.2, allocations: 4.529 MB / 378.9 MB, free: 46.59 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.117e-05/0.2, allocations: 72.34 kB / 378.9 MB, free: 46.51 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001641/0.2017, allocations: 2.717 MB / 381.6 MB, free: 43.78 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.367e-05/0.2017, allocations: 45.64 kB / 381.7 MB, free: 43.73 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004934/0.2022, allocations: 1.303 MB / 383 MB, free: 42.45 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.2023, allocations: 346.8 kB / 383.3 MB, free: 42.15 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001767/0.2025, allocations: 238.4 kB / 383.6 MB, free: 41.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.895e-05/0.2025, allocations: 341.9 kB / 383.9 MB, free: 41.57 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005816/0.2031, allocations: 478 kB / 384.4 MB, free: 41.11 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006182/0.2037, allocations: 0.6437 MB / 385 MB, free: 40.4 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001201/0.2049, allocations: 1.137 MB / 386.2 MB, free: 39.2 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.205, allocations: 4 kB / 386.2 MB, free: 39.2 MB / 330.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.001769/0.2067, allocations: 1.831 MB / 388 MB, free: 37.32 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.2067, allocations: 4 kB / 388 MB, free: 37.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.682e-05/0.2068, allocations: 120 kB / 388.1 MB, free: 37.2 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003472/0.2072, allocations: 273.5 kB / 388.4 MB, free: 36.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003866/0.2075, allocations: 199.6 kB / 388.6 MB, free: 36.71 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003378/0.2109, allocations: 12.96 MB / 401.5 MB, free: 22.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006128/0.2115, allocations: 95.89 kB / 401.6 MB, free: 22.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.197e-05/0.2116, allocations: 59.75 kB / 401.7 MB, free: 22.62 MB / 330.7 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.0004879/0.2121, allocations: 428.3 kB / 402.1 MB, free: 22.2 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.2123, allocations: 397.5 kB / 402.5 MB, free: 21.8 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002305/0.2146, allocations: 2.058 MB / 404.5 MB, free: 19.71 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.2146, allocations: 12 kB / 404.6 MB, free: 19.7 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.2146, allocations: 7.984 kB / 404.6 MB, free: 19.7 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.852e-06/0.2146, allocations: 8.766 kB / 404.6 MB, free: 19.69 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.2157, allocations: 1.296 MB / 405.9 MB, free: 18.38 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.433e-05/0.2158, allocations: 116 kB / 406 MB, free: 18.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003101/0.2161, allocations: 135.8 kB / 406.1 MB, free: 18.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003079/0.2164, allocations: 268 kB / 406.4 MB, free: 17.84 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.899e-05/0.2165, allocations: 47.92 kB / 406.4 MB, free: 17.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003213/0.2197, allocations: 12.97 MB / 419.4 MB, free: 3.812 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2197, allocations: 0 / 419.4 MB, free: 3.812 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00248/0.2222, allocations: 2.422 MB / 421.8 MB, free: 1.344 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000451/0.2226, allocations: 435.3 kB / 422.2 MB, free: 0.9141 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001528/0.2228, allocations: 20 kB / 422.3 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004535/0.2232, allocations: 79.89 kB / 422.3 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002148/0.2234, allocations: 148.8 kB / 422.5 MB, free: 0.6719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.331e-05/0.2235, allocations: 51.98 kB / 422.5 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001492/0.225, allocations: 1.786 MB / 424.3 MB, free: 14.83 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.225, allocations: 0 / 424.3 MB, free: 14.83 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001146/0.2261, allocations: 0.6604 MB / 425 MB, free: 14.2 MB / 346.7 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.0008934/0.227, allocations: 0.8557 MB / 425.8 MB, free: 13.4 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002317/0.2293, allocations: 2.45 MB / 428.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.2293, allocations: 0 / 428.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001518/0.2309, allocations: 1.898 MB / 430.2 MB, free: 8.746 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.2319, allocations: 0.5325 MB / 430.7 MB, free: 8.207 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004197/0.2361, allocations: 4.614 MB / 435.3 MB, free: 3.574 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000692/0.2368, allocations: 1.116 MB / 436.4 MB, free: 2.426 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002407/0.237, allocations: 176.5 kB / 436.6 MB, free: 2.254 MB / 346.7 MB Notification: Performance of SimCode: time 9.92e-07/0.237, allocations: 0 / 436.6 MB, free: 2.254 MB / 346.7 MB Notification: Performance of Templates: time 0.2362/0.4732, allocations: 156.8 MB / 0.5795 GB, free: 83.4 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 10.972226971760392]