Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001353/0.001353, allocations: 85.42 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001481/0.001481, allocations: 158.9 kB / 23.95 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 177 MB / 204.1 MB, free: 9.148 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 325 MB, free: 492 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.982e-05/3.114e-05, allocations: 2.281 kB / 325 MB, free: 488 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01386/0.01389, allocations: 11.98 MB / 337 MB, free: 8.039 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02595/0.03985, allocations: 17.6 MB / 354.6 MB, free: 7.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003053/0.0429, allocations: 193.8 kB / 354.8 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003706/0.0466, allocations: 1.028 MB / 355.8 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008688/0.05529, allocations: 2.401 MB / 358.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004858/0.06015, allocations: 1.445 MB / 359.6 MB, free: 2.285 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01189/0.07204, allocations: 6.706 MB / 366.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008442/0.07289, allocations: 253 kB / 366.6 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0028/0.07569, allocations: 1.543 MB / 368.1 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001367/0.07705, allocations: 0.7785 MB / 368.9 MB, free: 8.953 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002231/0.07728, allocations: 76 kB / 369 MB, free: 8.879 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003544/0.08082, allocations: 1.217 MB / 370.2 MB, free: 7.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003845/0.08121, allocations: 317.7 kB / 370.5 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001312/0.08252, allocations: 0.7204 MB / 371.2 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005745/0.08826, allocations: 3.682 MB / 374.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.08827, allocations: 0 / 374.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.08827, allocations: 0 / 374.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.138e-05/0.08834, allocations: 4 kB / 374.9 MB, free: 2.926 MB / 334.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.005959/0.0943, allocations: 3.574 MB / 378.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.09434, allocations: 11.98 kB / 378.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005139/0.09486, allocations: 397.5 kB / 378.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003998/0.09886, allocations: 2.378 MB / 381.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.836e-05/0.0989, allocations: 33 kB / 381.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/0.09905, allocations: 51.94 kB / 381.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001697/0.1007, allocations: 0.7577 MB / 382.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.1008, allocations: 3.938 kB / 382.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.322e-05/0.1008, allocations: 27.98 kB / 382.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.833e-05/0.1009, allocations: 19.98 kB / 382.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001982/0.1029, allocations: 0.8514 MB / 383 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005609/0.1085, allocations: 2.678 MB / 385.7 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001907/0.1104, allocations: 0.7284 MB / 386.4 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001637/0.112, allocations: 0.8638 MB / 387.3 MB, free: 6.336 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02774/0.1397, allocations: 13.67 MB / 401 MB, free: 8.293 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001341/0.1411, allocations: 0.5918 MB / 401.6 MB, free: 7.688 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 3.256e-06/0.1411, allocations: 8 kB / 401.6 MB, free: 7.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01332/0.1544, allocations: 4.513 MB / 406.1 MB, free: 3.102 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.753e-05/0.1545, allocations: 68.39 kB / 406.1 MB, free: 3.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003576/0.1581, allocations: 2.704 MB / 408.8 MB, free: 308 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.615e-05/0.1581, allocations: 45.69 kB / 408.9 MB, free: 256 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001342/0.1595, allocations: 1.3 MB / 410.2 MB, free: 14.94 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003412/0.1598, allocations: 352.9 kB / 410.5 MB, free: 14.6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003981/0.1602, allocations: 234.4 kB / 410.8 MB, free: 14.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003214/0.1605, allocations: 345.9 kB / 411.1 MB, free: 14.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/0.162, allocations: 478 kB / 411.6 MB, free: 13.55 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001543/0.1635, allocations: 0.6431 MB / 412.2 MB, free: 12.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003007/0.1665, allocations: 1.133 MB / 413.3 MB, free: 11.65 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/0.1665, allocations: 4 kB / 413.3 MB, free: 11.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004448/0.171, allocations: 1.839 MB / 415.2 MB, free: 9.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.171, allocations: 8 kB / 415.2 MB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001738/0.1712, allocations: 116 kB / 415.3 MB, free: 9.648 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007721/0.172, allocations: 264.6 kB / 415.6 MB, free: 9.359 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009949/0.1729, allocations: 199.7 kB / 415.8 MB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01162/0.1846, allocations: 12.96 MB / 428.7 MB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001399/0.186, allocations: 92.08 kB / 428.8 MB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001359/0.1861, allocations: 56 kB / 428.9 MB, free: 11.04 MB / 398.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.0009699/0.1871, allocations: 422.3 kB / 429.3 MB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004547/0.1875, allocations: 393.5 kB / 429.7 MB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005299/0.1928, allocations: 2.048 MB / 431.7 MB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.1928, allocations: 8 kB / 431.7 MB, free: 8.125 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.446e-05/0.1929, allocations: 12 kB / 431.7 MB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.1929, allocations: 3.984 kB / 431.7 MB, free: 8.109 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001919/0.1948, allocations: 1.297 MB / 433 MB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001694/0.195, allocations: 123.9 kB / 433.2 MB, free: 6.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007957/0.1957, allocations: 131.8 kB / 433.3 MB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007163/0.1965, allocations: 264.3 kB / 433.5 MB, free: 6.242 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.621e-05/0.1966, allocations: 51.86 kB / 433.6 MB, free: 6.191 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01107/0.2076, allocations: 12.97 MB / 446.6 MB, free: 8.195 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2076, allocations: 8.125 kB / 446.6 MB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006059/0.2137, allocations: 2.395 MB / 449 MB, free: 5.738 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00102/0.2147, allocations: 435.3 kB / 449.4 MB, free: 5.312 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003406/0.2151, allocations: 20 kB / 449.4 MB, free: 5.293 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001096/0.2161, allocations: 83.89 kB / 449.5 MB, free: 5.211 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000403/0.2166, allocations: 144.7 kB / 449.6 MB, free: 5.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/0.2167, allocations: 47.98 kB / 449.7 MB, free: 5.023 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002676/0.2193, allocations: 1.77 MB / 451.4 MB, free: 3.246 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2193, allocations: 0 / 451.4 MB, free: 3.246 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001634/0.221, allocations: 0.6557 MB / 452.1 MB, free: 2.59 MB / 414.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.001464/0.2224, allocations: 0.8687 MB / 453 MB, free: 1.715 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004759/0.2272, allocations: 2.444 MB / 455.4 MB, free: 15.11 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.2272, allocations: 0 / 455.4 MB, free: 15.11 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003072/0.2303, allocations: 1.909 MB / 457.3 MB, free: 13.05 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002802/0.2331, allocations: 0.6103 MB / 457.9 MB, free: 12.44 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007784/0.2409, allocations: 4.546 MB / 462.5 MB, free: 7.855 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001647/0.2425, allocations: 1.104 MB / 463.6 MB, free: 6.715 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001899/0.2444, allocations: 395.4 kB / 464 MB, free: 6.324 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005547/0.245, allocations: 164.5 kB / 464.1 MB, free: 6.164 MB / 430.1 MB Notification: Performance of SimCode: time 1.222e-06/0.245, allocations: 3.938 kB / 464.1 MB, free: 6.16 MB / 430.1 MB Notification: Performance of Templates: time 0.2359/0.4809, allocations: 38.88 MB / 0.4912 GB, free: 108.8 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.237998876720667]