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.001894/0.001894, allocations: 95.59 kB / 20.96 MB, free: 3.449 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.001976/0.001976, allocations: 156.9 kB / 24.27 MB, free: 152 kB / 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 1.719/1.719, allocations: 177 MB / 204.5 MB, free: 5.613 MB / 186.7 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.192e-06/1.192e-06, allocations: 0 / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.393e-05/2.512e-05, allocations: 2.312 kB / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01663/0.01666, allocations: 13.49 MB / 285.7 MB, free: 4.262 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1275/0.1441, allocations: 19.38 MB / 305.1 MB, free: 11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001667/0.1458, allocations: 188.6 kB / 305.2 MB, free: 10.87 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002363/0.1481, allocations: 1.042 MB / 306.3 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00631/0.1545, allocations: 2.399 MB / 308.7 MB, free: 8.875 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004306/0.1588, allocations: 1.45 MB / 310.1 MB, free: 7.961 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007906/0.1667, allocations: 6.708 MB / 316.8 MB, free: 4.664 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004727/0.1671, allocations: 241.4 kB / 317.1 MB, free: 4.504 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001592/0.1687, allocations: 1.545 MB / 318.6 MB, free: 3.277 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008771/0.1696, allocations: 0.7746 MB / 319.4 MB, free: 2.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001884/0.1698, allocations: 76 kB / 319.5 MB, free: 2.426 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003039/0.1728, allocations: 1.213 MB / 320.7 MB, free: 1.211 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002159/0.173, allocations: 329.7 kB / 321 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007263/0.1738, allocations: 0.7165 MB / 321.7 MB, free: 172 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005238/0.179, allocations: 3.707 MB / 325.4 MB, free: 12.45 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.179, allocations: 0 / 325.4 MB, free: 12.45 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.179, allocations: 0 / 325.4 MB, free: 12.45 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.318e-05/0.1791, allocations: 3.938 kB / 325.4 MB, free: 12.44 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.006471/0.1855, allocations: 3.933 MB / 329.4 MB, free: 8.453 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.1856, allocations: 11.98 kB / 329.4 MB, free: 8.441 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006053/0.1862, allocations: 429.5 kB / 329.8 MB, free: 8.02 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004578/0.1908, allocations: 2.725 MB / 332.5 MB, free: 5.195 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.371e-05/0.1908, allocations: 33 kB / 332.6 MB, free: 5.16 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001459/0.191, allocations: 55.89 kB / 332.6 MB, free: 5.105 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/0.1924, allocations: 0.6601 MB / 333.3 MB, free: 4.438 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.1924, allocations: 0 / 333.3 MB, free: 4.438 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.189e-05/0.1925, allocations: 23.94 kB / 333.3 MB, free: 4.414 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.513e-05/0.1925, allocations: 19.98 kB / 333.3 MB, free: 4.395 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001693/0.1942, allocations: 0.7266 MB / 334 MB, free: 3.672 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006168/0.2004, allocations: 3.197 MB / 337.2 MB, free: 432 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001534/0.2019, allocations: 0.6081 MB / 337.8 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001451/0.2034, allocations: 0.7694 MB / 338.6 MB, free: 15.03 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03137/0.2348, allocations: 15.3 MB / 353.9 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/0.2359, allocations: 0.5744 MB / 354.5 MB, free: 14.75 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 2.995e-06/0.2359, allocations: 0 / 354.5 MB, free: 14.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.01145/0.2474, allocations: 4.125 MB / 358.6 MB, free: 10.55 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.653e-05/0.2475, allocations: 72.39 kB / 358.7 MB, free: 10.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005118/0.2526, allocations: 3.626 MB / 362.3 MB, free: 6.824 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.891e-05/0.2527, allocations: 45.7 kB / 362.4 MB, free: 6.773 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001803/0.2545, allocations: 1.595 MB / 364 MB, free: 5.172 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004041/0.2549, allocations: 369 kB / 364.3 MB, free: 4.809 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004494/0.2553, allocations: 260.1 kB / 364.6 MB, free: 4.547 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003238/0.2557, allocations: 0.5433 MB / 365.1 MB, free: 3.996 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/0.2568, allocations: 406.1 kB / 365.5 MB, free: 3.602 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001337/0.2581, allocations: 0.6621 MB / 366.2 MB, free: 2.848 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002419/0.2605, allocations: 1.156 MB / 367.3 MB, free: 1.605 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.2605, allocations: 0.875 kB / 367.3 MB, free: 1.605 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004007/0.2645, allocations: 1.78 MB / 369.1 MB, free: 15.78 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.2645, allocations: 8 kB / 369.1 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001839/0.2647, allocations: 120 kB / 369.2 MB, free: 15.65 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009295/0.2657, allocations: 317.2 kB / 369.5 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008469/0.2665, allocations: 179.8 kB / 369.7 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0149/0.2814, allocations: 18.23 MB / 387.9 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001373/0.2828, allocations: 72.03 kB / 388 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001614/0.2829, allocations: 56 kB / 388.1 MB, free: 11.56 MB / 346.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.0009369/0.2839, allocations: 468.3 kB / 388.5 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005942/0.2845, allocations: 417.5 kB / 388.9 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004886/0.2894, allocations: 1.949 MB / 390.9 MB, free: 8.68 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-05/0.2894, allocations: 12 kB / 390.9 MB, free: 8.668 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.655e-05/0.2894, allocations: 11.92 kB / 390.9 MB, free: 8.656 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.828e-06/0.2894, allocations: 3.984 kB / 390.9 MB, free: 8.652 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003031/0.2924, allocations: 1.857 MB / 392.8 MB, free: 6.762 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001786/0.2926, allocations: 120 kB / 392.9 MB, free: 6.645 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006557/0.2933, allocations: 103.9 kB / 393 MB, free: 6.543 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009235/0.2942, allocations: 308.6 kB / 393.3 MB, free: 6.199 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000123/0.2943, allocations: 47.97 kB / 393.3 MB, free: 6.152 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01524/0.3095, allocations: 18.23 MB / 411.6 MB, free: 2.691 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3095, allocations: 0 / 411.6 MB, free: 2.691 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005488/0.315, allocations: 2.267 MB / 413.8 MB, free: 364 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001299/0.3163, allocations: 455.4 kB / 414.3 MB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003514/0.3167, allocations: 23.92 kB / 414.3 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008596/0.3175, allocations: 51.95 kB / 414.3 MB, free: 15.83 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004193/0.318, allocations: 152.7 kB / 414.5 MB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001187/0.3181, allocations: 47.98 kB / 414.5 MB, free: 15.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003321/0.3214, allocations: 2.074 MB / 416.6 MB, free: 13.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3214, allocations: 0 / 416.6 MB, free: 13.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001839/0.3232, allocations: 0.6596 MB / 417.3 MB, free: 12.89 MB / 378.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.001499/0.3247, allocations: 0.8727 MB / 418.1 MB, free: 12.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00456/0.3293, allocations: 2.95 MB / 421.1 MB, free: 8.867 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3293, allocations: 0 / 421.1 MB, free: 8.867 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003175/0.3325, allocations: 2.438 MB / 423.5 MB, free: 6.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002781/0.3353, allocations: 0.6623 MB / 424.2 MB, free: 5.574 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007683/0.3429, allocations: 4.636 MB / 428.8 MB, free: 0.8789 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1014/0.4443, allocations: 1.101 MB / 429.9 MB, free: 120.9 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001296/0.4456, allocations: 391 kB / 430.3 MB, free: 120.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003098/0.4459, allocations: 167.6 kB / 430.5 MB, free: 120.9 MB / 378.7 MB Notification: Performance of SimCode: time 1.583e-06/0.4459, allocations: 0.5938 kB / 430.5 MB, free: 120.9 MB / 378.7 MB Notification: Performance of Templates: time 0.05353/0.4994, allocations: 39.24 MB / 469.7 MB, free: 94.59 MB / 378.7 MB " [Timeout remaining time 659] 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","/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.56133044406306]