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.0009535/0.0009535, allocations: 84.34 kB / 22.22 MB, free: 2.281 MB / 18.57 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.00099/0.00099, allocations: 167.6 kB / 25.61 MB, free: 8.875 MB / 18.57 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 0.9034/0.9034, allocations: 177 MB / 205.9 MB, free: 4.449 MB / 186.7 MB " [Timeout remaining time 179] 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.392e-06/1.392e-06, allocations: 0 / 274.1 MB, free: 4.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.482e-05/1.621e-05, allocations: 2.312 kB / 274.1 MB, free: 4.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008845/0.008861, allocations: 13.23 MB / 287.3 MB, free: 7.031 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01773/0.0266, allocations: 19.06 MB / 306.4 MB, free: 3.91 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001259/0.02785, allocations: 189.8 kB / 306.6 MB, free: 3.723 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001871/0.02973, allocations: 1.044 MB / 307.6 MB, free: 2.668 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005052/0.03478, allocations: 2.409 MB / 310 MB, free: 248 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002693/0.03747, allocations: 1.453 MB / 311.5 MB, free: 14.78 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005735/0.0432, allocations: 6.836 MB / 318.3 MB, free: 7.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003999/0.0436, allocations: 241 kB / 318.5 MB, free: 7.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002547/0.04615, allocations: 3.03 MB / 321.6 MB, free: 4.625 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007479/0.0469, allocations: 0.8136 MB / 322.4 MB, free: 3.809 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001103/0.04701, allocations: 76 kB / 322.5 MB, free: 3.734 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001929/0.04894, allocations: 1.202 MB / 323.7 MB, free: 2.531 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001942/0.04913, allocations: 337.6 kB / 324 MB, free: 2.199 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005572/0.04969, allocations: 0.7243 MB / 324.7 MB, free: 1.473 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002142/0.05183, allocations: 2.759 MB / 327.5 MB, free: 14.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.05184, allocations: 4 kB / 327.5 MB, free: 14.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.05184, allocations: 0 / 327.5 MB, free: 14.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.452e-05/0.05186, allocations: 0 / 327.5 MB, free: 14.7 MB / 314.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.00294/0.0548, allocations: 3.834 MB / 331.3 MB, free: 10.8 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.05484, allocations: 12.03 kB / 331.3 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003363/0.05517, allocations: 433.5 kB / 331.8 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002185/0.05736, allocations: 2.639 MB / 334.4 MB, free: 7.625 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.961e-05/0.05739, allocations: 37 kB / 334.4 MB, free: 7.586 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.408e-05/0.05748, allocations: 47.94 kB / 334.5 MB, free: 7.539 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006148/0.0581, allocations: 0.4967 MB / 335 MB, free: 7.031 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.05811, allocations: 4 kB / 335 MB, free: 7.027 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.825e-05/0.05816, allocations: 20 kB / 335 MB, free: 7.008 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/0.05817, allocations: 19.98 kB / 335 MB, free: 6.988 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004346/0.05861, allocations: 419.6 kB / 335.4 MB, free: 6.586 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002528/0.06114, allocations: 2.238 MB / 337.7 MB, free: 4.305 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00052/0.06166, allocations: 394.8 kB / 338 MB, free: 3.91 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005515/0.06221, allocations: 0.5739 MB / 338.6 MB, free: 3.34 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1215/0.1837, allocations: 15.1 MB / 353.7 MB, free: 55.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003575/0.1841, allocations: 400.5 kB / 354.1 MB, free: 55.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 2.705e-06/0.1841, allocations: 0.7188 kB / 354.1 MB, free: 55.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.003103/0.1872, allocations: 2.467 MB / 356.6 MB, free: 55.23 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.385e-05/0.1872, allocations: 78.62 kB / 356.7 MB, free: 55.14 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001421/0.1886, allocations: 2.864 MB / 359.5 MB, free: 53.49 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.613e-05/0.1887, allocations: 41.7 kB / 359.6 MB, free: 53.44 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006103/0.1893, allocations: 1.502 MB / 361.1 MB, free: 52.13 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001567/0.1894, allocations: 354.2 kB / 361.4 MB, free: 51.85 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/0.1897, allocations: 241.5 kB / 361.6 MB, free: 51.62 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.324e-05/0.1897, allocations: 0.5242 MB / 362.2 MB, free: 51.12 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001795/0.1899, allocations: 158.2 kB / 362.3 MB, free: 50.96 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002681/0.1902, allocations: 409.3 kB / 362.7 MB, free: 50.5 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004618/0.1906, allocations: 0.6438 MB / 363.4 MB, free: 49.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1906, allocations: 0.875 kB / 363.4 MB, free: 49.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00102/0.1917, allocations: 1.26 MB / 364.6 MB, free: 48.57 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.1917, allocations: 8 kB / 364.6 MB, free: 48.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.858e-05/0.1918, allocations: 116.6 kB / 364.8 MB, free: 48.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003047/0.1921, allocations: 258.9 kB / 365 MB, free: 48.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003611/0.1924, allocations: 178.1 kB / 365.2 MB, free: 48.01 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003331/0.1958, allocations: 17.35 MB / 382.5 MB, free: 29.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004591/0.1962, allocations: 63.17 kB / 382.6 MB, free: 29.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.404e-05/0.1963, allocations: 49.64 kB / 382.6 MB, free: 29.6 MB / 314.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.0002781/0.1966, allocations: 216.4 kB / 382.9 MB, free: 29.39 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002074/0.1968, allocations: 416.7 kB / 383.3 MB, free: 28.98 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001462/0.1982, allocations: 1.504 MB / 384.8 MB, free: 27.46 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.1982, allocations: 8 kB / 384.8 MB, free: 27.46 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1982, allocations: 4 kB / 384.8 MB, free: 27.45 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.1982, allocations: 3.984 kB / 384.8 MB, free: 27.45 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007669/0.199, allocations: 1.08 MB / 385.9 MB, free: 26.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.151e-05/0.1991, allocations: 119 kB / 386 MB, free: 26.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002621/0.1994, allocations: 109.8 kB / 386.1 MB, free: 26.33 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003148/0.1997, allocations: 247.9 kB / 386.3 MB, free: 26.05 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.879e-05/0.1997, allocations: 51.91 kB / 386.4 MB, free: 26 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003205/0.2029, allocations: 17.33 MB / 403.7 MB, free: 7.664 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2029, allocations: 0 / 403.7 MB, free: 7.664 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001232/0.2042, allocations: 1.487 MB / 405.2 MB, free: 6.148 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003896/0.2045, allocations: 459.3 kB / 405.6 MB, free: 5.703 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001768/0.2047, allocations: 20 kB / 405.7 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004145/0.2051, allocations: 51.94 kB / 405.7 MB, free: 5.633 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001909/0.2053, allocations: 140.8 kB / 405.9 MB, free: 5.496 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.844e-05/0.2054, allocations: 51.98 kB / 405.9 MB, free: 5.445 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007358/0.2061, allocations: 1.505 MB / 407.4 MB, free: 4.102 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2061, allocations: 0 / 407.4 MB, free: 4.102 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009638/0.2071, allocations: 0.6604 MB / 408.1 MB, free: 3.477 MB / 314.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.0007987/0.2079, allocations: 0.9718 MB / 409 MB, free: 2.695 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.2089, allocations: 2.461 MB / 411.5 MB, free: 68 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2089, allocations: 0 / 411.5 MB, free: 68 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.21, allocations: 2.209 MB / 413.7 MB, free: 13.69 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001319/0.2113, allocations: 0.6499 MB / 414.4 MB, free: 13.04 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003854/0.2152, allocations: 4.295 MB / 418.7 MB, free: 8.723 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002888/0.2155, allocations: 412.9 kB / 419.1 MB, free: 8.293 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006606/0.2161, allocations: 387.4 kB / 419.4 MB, free: 7.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008551/0.217, allocations: 0.7283 MB / 420.2 MB, free: 7.195 MB / 330.7 MB Notification: Performance of SimCode: time 5.61e-07/0.217, allocations: 0 / 420.2 MB, free: 7.195 MB / 330.7 MB Notification: Performance of Templates: time 0.05817/0.2752, allocations: 45.15 MB / 465.3 MB, free: 10.69 MB / 378.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 240] 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","",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.9564343160018325]