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.001459/0.001459, allocations: 85.56 kB / 20.68 MB, free: 1.023 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.001358/0.001358, allocations: 166.9 kB / 23.96 MB, free: 4.145 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.418/1.418, allocations: 177.1 MB / 204.3 MB, free: 9.172 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 1.263e-06/1.263e-06, allocations: 0 / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.909e-05/2.035e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01297/0.01299, allocations: 11.98 MB / 337 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02576/0.03875, allocations: 17.59 MB / 354.6 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002831/0.04158, allocations: 189.8 kB / 354.8 MB, free: 7.305 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002793/0.04438, allocations: 1.036 MB / 355.8 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007345/0.05172, allocations: 2.405 MB / 358.3 MB, free: 3.836 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00428/0.056, allocations: 1.441 MB / 359.7 MB, free: 2.391 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01122/0.06722, allocations: 6.71 MB / 366.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00062/0.06784, allocations: 245 kB / 366.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002138/0.06997, allocations: 1.535 MB / 368.2 MB, free: 9.852 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00116/0.07113, allocations: 0.7862 MB / 369 MB, free: 9.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002017/0.07134, allocations: 76 kB / 369 MB, free: 8.988 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003309/0.07465, allocations: 1.21 MB / 370.3 MB, free: 7.777 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003229/0.07497, allocations: 321.7 kB / 370.6 MB, free: 7.461 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009735/0.07594, allocations: 0.7242 MB / 371.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004503/0.08044, allocations: 3.682 MB / 375 MB, free: 3.039 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.08045, allocations: 7.984 kB / 375 MB, free: 3.031 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.08045, allocations: 0 / 375 MB, free: 3.031 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.867e-05/0.08048, allocations: 4 kB / 375 MB, free: 3.027 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.005257/0.08574, allocations: 3.567 MB / 378.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.08578, allocations: 12.03 kB / 378.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004411/0.08622, allocations: 393.5 kB / 378.9 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003756/0.08997, allocations: 2.378 MB / 381.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.978e-05/0.09001, allocations: 29 kB / 381.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/0.09014, allocations: 55.73 kB / 381.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001634/0.09178, allocations: 0.7655 MB / 382.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.09179, allocations: 0 / 382.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.704e-05/0.09187, allocations: 16 kB / 382.2 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.156e-05/0.09189, allocations: 19.98 kB / 382.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001958/0.09385, allocations: 0.8592 MB / 383.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004769/0.09862, allocations: 2.667 MB / 385.7 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001842/0.1005, allocations: 0.7246 MB / 386.5 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001588/0.102, allocations: 0.8755 MB / 387.3 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02604/0.1281, allocations: 13.66 MB / 401 MB, free: 8.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001312/0.1294, allocations: 0.6074 MB / 401.6 MB, free: 7.793 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 3.066e-06/0.1294, allocations: 0 / 401.6 MB, free: 7.793 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01282/0.1422, allocations: 4.509 MB / 406.1 MB, free: 3.215 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.921e-05/0.1423, allocations: 76.33 kB / 406.2 MB, free: 3.125 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003525/0.1458, allocations: 2.7 MB / 408.9 MB, free: 420 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.153e-05/0.1459, allocations: 41.7 kB / 408.9 MB, free: 372 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001264/0.1472, allocations: 1.308 MB / 410.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003178/0.1475, allocations: 349 kB / 410.6 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003776/0.1479, allocations: 226.4 kB / 410.8 MB, free: 14.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.148, allocations: 349.9 kB / 411.1 MB, free: 14.13 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001415/0.1495, allocations: 477.9 kB / 411.6 MB, free: 13.67 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001518/0.151, allocations: 0.654 MB / 412.3 MB, free: 12.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002894/0.1539, allocations: 1.133 MB / 413.4 MB, free: 11.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.1539, allocations: 4 kB / 413.4 MB, free: 11.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004234/0.1581, allocations: 1.831 MB / 415.2 MB, free: 9.879 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.1581, allocations: 8 kB / 415.2 MB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001714/0.1583, allocations: 120 kB / 415.4 MB, free: 9.754 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000752/0.1591, allocations: 264.9 kB / 415.6 MB, free: 9.465 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009452/0.16, allocations: 199.7 kB / 415.8 MB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01067/0.1707, allocations: 12.97 MB / 428.8 MB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/0.1719, allocations: 87.89 kB / 428.9 MB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001301/0.172, allocations: 56 kB / 428.9 MB, free: 11.14 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.0007845/0.1728, allocations: 423 kB / 429.3 MB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004792/0.1733, allocations: 393.5 kB / 429.7 MB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005269/0.1785, allocations: 2.056 MB / 431.8 MB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/0.1785, allocations: 8 kB / 431.8 MB, free: 8.227 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.54e-05/0.1785, allocations: 4 kB / 431.8 MB, free: 8.223 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.1786, allocations: 3.984 kB / 431.8 MB, free: 8.219 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002231/0.1808, allocations: 1.297 MB / 433.1 MB, free: 6.891 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001781/0.181, allocations: 120 kB / 433.2 MB, free: 6.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008072/0.1818, allocations: 135.8 kB / 433.3 MB, free: 6.641 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007649/0.1825, allocations: 264.3 kB / 433.6 MB, free: 6.352 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/0.1827, allocations: 43.92 kB / 433.6 MB, free: 6.309 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01316/0.1958, allocations: 12.97 MB / 446.6 MB, free: 8.309 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1958, allocations: 0 / 446.6 MB, free: 8.309 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006506/0.2023, allocations: 2.406 MB / 449 MB, free: 5.852 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/0.2034, allocations: 435.3 kB / 449.4 MB, free: 5.426 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004081/0.2038, allocations: 20 kB / 449.5 MB, free: 5.406 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.2049, allocations: 83.89 kB / 449.5 MB, free: 5.324 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004433/0.2053, allocations: 140.7 kB / 449.7 MB, free: 5.188 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/0.2055, allocations: 51.98 kB / 449.7 MB, free: 5.137 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002901/0.2084, allocations: 1.77 MB / 451.5 MB, free: 3.359 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2084, allocations: 0 / 451.5 MB, free: 3.359 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001721/0.2101, allocations: 0.6596 MB / 452.2 MB, free: 2.699 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.001483/0.2116, allocations: 0.8618 MB / 453 MB, free: 1.824 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004761/0.2163, allocations: 2.452 MB / 455.5 MB, free: 15.22 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2163, allocations: 0 / 455.5 MB, free: 15.22 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003023/0.2193, allocations: 1.905 MB / 457.4 MB, free: 13.16 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002588/0.2219, allocations: 0.6247 MB / 458 MB, free: 12.54 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007184/0.2291, allocations: 4.535 MB / 462.5 MB, free: 7.961 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001206/0.2303, allocations: 1.115 MB / 463.6 MB, free: 6.809 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001091/0.2314, allocations: 387.4 kB / 464 MB, free: 6.426 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003406/0.2318, allocations: 168.5 kB / 464.2 MB, free: 6.262 MB / 430.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2318, allocations: 0 / 464.2 MB, free: 6.262 MB / 430.1 MB Notification: Performance of Templates: time 0.1936/0.4254, allocations: 38.89 MB / 0.4913 GB, free: 109.1 MB / 430.1 MB " [Timeout remaining time 660] 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 -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/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_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: 6.001153826713562]