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.0009989/0.0009989, allocations: 75.77 kB / 22.45 MB, free: 2.09 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.001061/0.001061, allocations: 164 kB / 25.75 MB, free: 8.945 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.9097/0.9097, allocations: 158.6 MB / 187.5 MB, free: 2.941 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.924e-06/1.924e-06, allocations: 0 / 251.1 MB, free: 7.816 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.327e-05/2.52e-05, allocations: 2.312 kB / 251.1 MB, free: 7.812 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01128/0.0113, allocations: 12.87 MB / 264 MB, free: 10.88 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01579/0.02709, allocations: 18.44 MB / 282.4 MB, free: 8.375 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001722/0.02881, allocations: 189.8 kB / 282.6 MB, free: 8.188 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002269/0.03108, allocations: 1.017 MB / 283.6 MB, free: 7.164 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005497/0.03658, allocations: 2.374 MB / 286 MB, free: 4.773 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003046/0.03963, allocations: 1.39 MB / 287.4 MB, free: 3.371 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006904/0.04653, allocations: 6.491 MB / 293.9 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000467/0.047, allocations: 253 kB / 294.1 MB, free: 12.58 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001451/0.04845, allocations: 1.407 MB / 295.5 MB, free: 11.17 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006389/0.04909, allocations: 0.7553 MB / 296.3 MB, free: 10.41 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001015/0.04919, allocations: 80 kB / 296.3 MB, free: 10.33 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002298/0.05149, allocations: 1.085 MB / 297.4 MB, free: 9.246 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002064/0.05169, allocations: 333.6 kB / 297.8 MB, free: 8.918 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006196/0.05231, allocations: 0.7165 MB / 298.5 MB, free: 8.199 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002693/0.05501, allocations: 2.774 MB / 301.3 MB, free: 5.414 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.05501, allocations: 0 / 301.3 MB, free: 5.414 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.05501, allocations: 4 kB / 301.3 MB, free: 5.41 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.835e-05/0.05504, allocations: 0 / 301.3 MB, free: 5.41 MB / 282.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.003254/0.05829, allocations: 3.8 MB / 305.1 MB, free: 1.547 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.05833, allocations: 11.98 kB / 305.1 MB, free: 1.535 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003397/0.05867, allocations: 445.5 kB / 305.5 MB, free: 1.098 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002318/0.06099, allocations: 2.726 MB / 308.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.06102, allocations: 37 kB / 308.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.039e-05/0.06111, allocations: 55.94 kB / 308.3 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007508/0.06186, allocations: 0.5512 MB / 308.9 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.06187, allocations: 3.938 kB / 308.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.167e-05/0.06192, allocations: 23.98 kB / 308.9 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.709e-05/0.06194, allocations: 16 kB / 308.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000591/0.06253, allocations: 482.4 kB / 309.4 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003029/0.06556, allocations: 2.735 MB / 312.1 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006163/0.06618, allocations: 454.6 kB / 312.6 MB, free: 9.875 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006247/0.0668, allocations: 0.6131 MB / 313.2 MB, free: 9.262 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01571/0.08251, allocations: 15.18 MB / 328.4 MB, free: 9.695 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005485/0.08306, allocations: 435.8 kB / 328.8 MB, free: 9.258 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 2.815e-06/0.08307, allocations: 0 / 328.8 MB, free: 9.258 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.004844/0.08791, allocations: 3.163 MB / 331.9 MB, free: 6.016 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.08795, allocations: 64.41 kB / 332 MB, free: 5.941 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002248/0.0902, allocations: 2.925 MB / 334.9 MB, free: 3.004 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.707e-05/0.09026, allocations: 45.7 kB / 335 MB, free: 2.953 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001018/0.09127, allocations: 1.463 MB / 336.4 MB, free: 1.484 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002017/0.09148, allocations: 349 kB / 336.8 MB, free: 1.141 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002274/0.0917, allocations: 244.1 kB / 337 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.09183, allocations: 0.5199 MB / 337.5 MB, free: 376 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003228/0.09215, allocations: 206.2 kB / 337.7 MB, free: 168 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004288/0.09258, allocations: 454.1 kB / 338.2 MB, free: 15.64 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009582/0.09354, allocations: 0.7112 MB / 338.9 MB, free: 14.84 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.09354, allocations: 0 / 338.9 MB, free: 14.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.001631/0.09518, allocations: 1.355 MB / 340.2 MB, free: 13.43 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.0952, allocations: 12 kB / 340.3 MB, free: 13.42 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.843e-05/0.0953, allocations: 120 kB / 340.4 MB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004698/0.09576, allocations: 256.6 kB / 340.6 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004292/0.09619, allocations: 183.7 kB / 340.8 MB, free: 12.83 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1138/0.21, allocations: 17.57 MB / 358.4 MB, free: 70.74 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/0.211, allocations: 58.27 kB / 358.4 MB, free: 70.74 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001432/0.2111, allocations: 60.97 kB / 358.5 MB, free: 70.74 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.0003972/0.2115, allocations: 210.6 kB / 358.7 MB, free: 70.58 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003864/0.2119, allocations: 423.5 kB / 359.1 MB, free: 70.58 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001989/0.2139, allocations: 1.593 MB / 360.7 MB, free: 70.36 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.2139, allocations: 7.688 kB / 360.7 MB, free: 70.36 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.2139, allocations: 3.562 kB / 360.7 MB, free: 70.36 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.2139, allocations: 7.094 kB / 360.7 MB, free: 70.36 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001233/0.2152, allocations: 1.527 MB / 362.3 MB, free: 70.17 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.69e-05/0.2152, allocations: 118.8 kB / 362.4 MB, free: 70.17 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002883/0.2155, allocations: 106.8 kB / 362.5 MB, free: 70.17 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000391/0.2159, allocations: 262.8 kB / 362.7 MB, free: 70.05 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.029e-05/0.216, allocations: 45.67 kB / 362.8 MB, free: 70.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003899/0.2199, allocations: 17.58 MB / 380.4 MB, free: 52.88 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.2199, allocations: 0 / 380.4 MB, free: 52.88 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001824/0.2217, allocations: 1.609 MB / 382 MB, free: 52.6 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005477/0.2223, allocations: 459.1 kB / 382.4 MB, free: 52.39 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002302/0.2225, allocations: 17.12 kB / 382.4 MB, free: 52.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004394/0.2229, allocations: 52.22 kB / 382.5 MB, free: 52.39 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002466/0.2232, allocations: 140.3 kB / 382.6 MB, free: 52.39 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-05/0.2232, allocations: 54.05 kB / 382.7 MB, free: 52.39 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001313/0.2246, allocations: 1.62 MB / 384.3 MB, free: 52.17 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2246, allocations: 4 kB / 384.3 MB, free: 52.16 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001158/0.2257, allocations: 0.6729 MB / 385 MB, free: 52.16 MB / 330.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.001035/0.2267, allocations: 0.8838 MB / 385.8 MB, free: 52.02 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001734/0.2285, allocations: 2.54 MB / 388.4 MB, free: 50.15 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.2285, allocations: 0 / 388.4 MB, free: 50.15 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001241/0.2297, allocations: 2.24 MB / 390.6 MB, free: 48.3 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00142/0.2311, allocations: 0.5486 MB / 391.2 MB, free: 48.21 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00439/0.2355, allocations: 4.341 MB / 395.5 MB, free: 46.04 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.2358, allocations: 409.4 kB / 395.9 MB, free: 45.93 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007751/0.2366, allocations: 387.5 kB / 396.3 MB, free: 45.77 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002049/0.2368, allocations: 178.4 kB / 396.5 MB, free: 45.61 MB / 330.7 MB Notification: Performance of SimCode: time 2.164e-06/0.2368, allocations: 0 / 396.5 MB, free: 45.61 MB / 330.7 MB Notification: Performance of Templates: time 0.03948/0.2763, allocations: 39.55 MB / 436 MB, free: 7.066 MB / 330.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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.9149998400826007]