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.001306/0.001306, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001399/0.001399, allocations: 216.4 kB / 24.48 MB, free: 3.941 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.584/1.584, allocations: 230.6 MB / 258.2 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.001529/0.001529, allocations: 43.92 kB / 379 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2209/0.2224, allocations: 53.37 MB / 432.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01324/0.2357, allocations: 11.97 MB / 444.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02296/0.2586, allocations: 17.58 MB / 461.9 MB, free: 9.066 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001689/0.2603, allocations: 193.8 kB / 462.1 MB, free: 8.875 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002564/0.2629, allocations: 1.031 MB / 463.1 MB, free: 7.844 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006383/0.2693, allocations: 2.331 MB / 465.4 MB, free: 5.492 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003956/0.2732, allocations: 1.414 MB / 466.8 MB, free: 4.078 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009512/0.2827, allocations: 6.54 MB / 473.4 MB, free: 13.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004899/0.2832, allocations: 245 kB / 473.6 MB, free: 13.24 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001453/0.2847, allocations: 1.147 MB / 474.8 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001254/0.2859, allocations: 1.087 MB / 475.9 MB, free: 11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001999/0.2861, allocations: 76 kB / 475.9 MB, free: 10.92 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003038/0.2892, allocations: 1.233 MB / 477.2 MB, free: 9.688 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003098/0.2895, allocations: 321.7 kB / 477.5 MB, free: 9.371 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001002/0.2905, allocations: 0.9819 MB / 478.5 MB, free: 8.383 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004391/0.2949, allocations: 3.749 MB / 482.2 MB, free: 4.617 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.2949, allocations: 0 / 482.2 MB, free: 4.617 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2949, allocations: 0 / 482.2 MB, free: 4.617 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.674e-05/0.2949, allocations: 0 / 482.2 MB, free: 4.617 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.005568/0.3005, allocations: 3.61 MB / 485.8 MB, free: 0.9531 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.3005, allocations: 8.031 kB / 485.8 MB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004481/0.301, allocations: 397.5 kB / 486.2 MB, free: 0.5547 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003985/0.3049, allocations: 2.375 MB / 488.6 MB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.349e-05/0.305, allocations: 41 kB / 488.6 MB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00014/0.3051, allocations: 48 kB / 488.7 MB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.3067, allocations: 0.7655 MB / 489.4 MB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.3068, allocations: 0 / 489.4 MB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.149e-05/0.3068, allocations: 20 kB / 489.5 MB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.287e-05/0.3069, allocations: 19.98 kB / 489.5 MB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001888/0.3087, allocations: 0.8553 MB / 490.3 MB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00518/0.3139, allocations: 2.678 MB / 493 MB, free: 9.602 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001772/0.3157, allocations: 0.7168 MB / 493.7 MB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001548/0.3172, allocations: 0.8684 MB / 494.6 MB, free: 8.012 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02808/0.3453, allocations: 13.69 MB / 0.4964 GB, free: 9.938 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001308/0.3466, allocations: 0.5918 MB / 0.497 GB, free: 9.336 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.985e-06/0.3466, allocations: 0 / 0.497 GB, free: 9.336 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01238/0.359, allocations: 4.517 MB / 0.5014 GB, free: 4.754 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.564e-05/0.3591, allocations: 68.39 kB / 0.5014 GB, free: 4.672 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003321/0.3624, allocations: 2.696 MB / 0.5041 GB, free: 1.961 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.135e-05/0.3625, allocations: 49.69 kB / 0.5041 GB, free: 1.906 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001232/0.3637, allocations: 1.308 MB / 0.5054 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003142/0.364, allocations: 356.9 kB / 0.5057 GB, free: 248 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003766/0.3644, allocations: 234.4 kB / 0.5059 GB, free: 8 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.3646, allocations: 353.9 kB / 0.5063 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.3659, allocations: 474 kB / 0.5067 GB, free: 15.2 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001428/0.3673, allocations: 0.647 MB / 0.5074 GB, free: 14.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002667/0.3699, allocations: 1.133 MB / 0.5085 GB, free: 13.29 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.37, allocations: 0 / 0.5085 GB, free: 13.29 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004063/0.374, allocations: 1.827 MB / 0.5103 GB, free: 11.42 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.374, allocations: 12.09 kB / 0.5103 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001812/0.3742, allocations: 123.9 kB / 0.5104 GB, free: 11.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007347/0.375, allocations: 268.3 kB / 0.5106 GB, free: 11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009242/0.3759, allocations: 195.7 kB / 0.5108 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01047/0.3863, allocations: 12.97 MB / 0.5235 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001255/0.3876, allocations: 95.95 kB / 0.5236 GB, free: 12.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001336/0.3877, allocations: 60 kB / 0.5236 GB, free: 12.66 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.0007768/0.3885, allocations: 430.2 kB / 0.5241 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004268/0.3889, allocations: 389.6 kB / 0.5244 GB, free: 11.85 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00499/0.3939, allocations: 2.052 MB / 0.5264 GB, free: 9.758 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.3939, allocations: 8 kB / 0.5264 GB, free: 9.75 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.3939, allocations: 4 kB / 0.5264 GB, free: 9.746 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/0.394, allocations: 7.984 kB / 0.5265 GB, free: 9.738 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001732/0.3957, allocations: 1.297 MB / 0.5277 GB, free: 8.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000166/0.3959, allocations: 123.9 kB / 0.5278 GB, free: 8.289 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000748/0.3966, allocations: 135.8 kB / 0.528 GB, free: 8.156 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007012/0.3973, allocations: 256.3 kB / 0.5282 GB, free: 7.875 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.3974, allocations: 43.98 kB / 0.5283 GB, free: 7.832 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1826/0.58, allocations: 12.97 MB / 0.5409 GB, free: 98.67 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.58, allocations: 6.406 kB / 0.5409 GB, free: 98.67 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005081/0.5851, allocations: 2.404 MB / 0.5433 GB, free: 98.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008875/0.586, allocations: 439.6 kB / 0.5437 GB, free: 98.49 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003146/0.5863, allocations: 21.88 kB / 0.5437 GB, free: 98.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009958/0.5873, allocations: 86.89 kB / 0.5438 GB, free: 98.49 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003159/0.5876, allocations: 142.8 kB / 0.5439 GB, free: 98.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.995e-05/0.5877, allocations: 46.67 kB / 0.544 GB, free: 98.47 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002079/0.5898, allocations: 1.773 MB / 0.5457 GB, free: 97.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5898, allocations: 0 / 0.5457 GB, free: 97.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001294/0.5911, allocations: 0.6596 MB / 0.5464 GB, free: 97.79 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.0009744/0.5921, allocations: 0.8123 MB / 0.5471 GB, free: 97.63 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00322/0.5953, allocations: 2.453 MB / 0.5495 GB, free: 96.07 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.5953, allocations: 4 kB / 0.5495 GB, free: 96.06 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001834/0.5971, allocations: 1.9 MB / 0.5514 GB, free: 94.62 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001914/0.599, allocations: 0.617 MB / 0.552 GB, free: 94.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004705/0.6037, allocations: 4.756 MB / 0.5566 GB, free: 90.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006776/0.6044, allocations: 1.11 MB / 0.5577 GB, free: 89.46 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000879/0.6053, allocations: 390.1 kB / 0.5581 GB, free: 89.18 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002524/0.6055, allocations: 169.5 kB / 0.5583 GB, free: 89.01 MB / 446.1 MB Notification: Performance of SimCode: time 4.31e-07/0.6055, allocations: 0 / 0.5583 GB, free: 89.01 MB / 446.1 MB Notification: Performance of Templates: time 0.07387/0.6794, allocations: 43.13 MB / 0.6004 GB, free: 46.61 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 -s gbode -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: 59.540980282996316]