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.001917/0.001917, allocations: 85.5 kB / 20.5 MB, free: 1.348 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.002104/0.002104, allocations: 160.6 kB / 23.74 MB, free: 4.527 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.453/1.453, allocations: 177.1 MB / 204 MB, free: 9.219 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 0.00202/0.00202, allocations: 58.02 kB / 324.8 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09903/0.101, allocations: 53.38 MB / 378.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01604/0.1171, allocations: 11.99 MB / 390.1 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02624/0.1433, allocations: 17.58 MB / 407.7 MB, free: 2.062 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001896/0.1452, allocations: 185.9 kB / 407.9 MB, free: 1.879 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002835/0.1481, allocations: 1.04 MB / 408.9 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006893/0.155, allocations: 2.317 MB / 411.2 MB, free: 14.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004052/0.159, allocations: 1.426 MB / 412.7 MB, free: 13.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01035/0.1694, allocations: 6.56 MB / 419.2 MB, free: 6.484 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005387/0.1699, allocations: 245 kB / 419.5 MB, free: 6.211 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002128/0.172, allocations: 1.662 MB / 421.1 MB, free: 4.543 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001296/0.1733, allocations: 1.04 MB / 422.2 MB, free: 3.496 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001658/0.1735, allocations: 80 kB / 422.2 MB, free: 3.418 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003111/0.1766, allocations: 1.202 MB / 423.4 MB, free: 2.215 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003639/0.177, allocations: 321.7 kB / 423.8 MB, free: 1.898 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00111/0.1781, allocations: 0.9742 MB / 424.7 MB, free: 0.918 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004693/0.1828, allocations: 3.745 MB / 428.5 MB, free: 13.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.1828, allocations: 0 / 428.5 MB, free: 13.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1828, allocations: 0 / 428.5 MB, free: 13.16 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.761e-05/0.1828, allocations: 0 / 428.5 MB, free: 13.16 MB / 398.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.00534/0.1882, allocations: 3.617 MB / 432.1 MB, free: 9.484 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.1882, allocations: 11.98 kB / 432.1 MB, free: 9.473 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004602/0.1887, allocations: 397.5 kB / 432.5 MB, free: 9.082 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003809/0.1925, allocations: 2.371 MB / 434.9 MB, free: 6.613 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.591e-05/0.1925, allocations: 44.97 kB / 434.9 MB, free: 6.566 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.1926, allocations: 48 kB / 435 MB, free: 6.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001544/0.1942, allocations: 0.7616 MB / 435.7 MB, free: 5.754 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.1942, allocations: 0 / 435.7 MB, free: 5.754 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.577e-05/0.1943, allocations: 20 kB / 435.7 MB, free: 5.734 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.398e-05/0.1943, allocations: 19.98 kB / 435.8 MB, free: 5.715 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001876/0.1962, allocations: 0.8591 MB / 436.6 MB, free: 4.855 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004901/0.2011, allocations: 2.678 MB / 439.3 MB, free: 2.133 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001766/0.2028, allocations: 0.7208 MB / 440 MB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001512/0.2044, allocations: 0.8641 MB / 440.9 MB, free: 0.5352 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02681/0.2312, allocations: 13.67 MB / 454.6 MB, free: 2.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001248/0.2324, allocations: 0.6035 MB / 455.2 MB, free: 1.867 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.597e-06/0.2324, allocations: 0 / 455.2 MB, free: 1.867 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01238/0.2448, allocations: 4.529 MB / 459.7 MB, free: 13.27 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.2449, allocations: 60.41 kB / 459.7 MB, free: 13.2 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004146/0.249, allocations: 2.704 MB / 462.4 MB, free: 10.48 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001024/0.2491, allocations: 45.7 kB / 462.5 MB, free: 10.43 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001296/0.2504, allocations: 1.304 MB / 463.8 MB, free: 9.117 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003737/0.2508, allocations: 353 kB / 464.1 MB, free: 8.77 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003989/0.2512, allocations: 234.4 kB / 464.4 MB, free: 8.535 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.2514, allocations: 349.9 kB / 464.7 MB, free: 8.188 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001291/0.2527, allocations: 478 kB / 465.2 MB, free: 7.723 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00145/0.2541, allocations: 0.6509 MB / 465.8 MB, free: 7.008 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002932/0.257, allocations: 1.129 MB / 467 MB, free: 5.816 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.257, allocations: 0 / 467 MB, free: 5.816 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00415/0.2612, allocations: 1.831 MB / 468.8 MB, free: 3.945 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/0.2612, allocations: 15.88 kB / 468.8 MB, free: 3.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001835/0.2614, allocations: 124 kB / 468.9 MB, free: 3.809 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007344/0.2621, allocations: 260.9 kB / 469.2 MB, free: 3.523 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008942/0.263, allocations: 199.7 kB / 469.4 MB, free: 3.328 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1796/0.4426, allocations: 12.97 MB / 482.3 MB, free: 77.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/0.4439, allocations: 89.27 kB / 482.4 MB, free: 77.89 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/0.444, allocations: 56.02 kB / 482.5 MB, free: 77.89 MB / 430.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.0007077/0.4447, allocations: 431.5 kB / 482.9 MB, free: 77.76 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000353/0.4451, allocations: 387.9 kB / 483.3 MB, free: 77.76 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004417/0.4495, allocations: 2.066 MB / 485.3 MB, free: 77.33 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/0.4495, allocations: 9.625 kB / 485.4 MB, free: 77.33 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.4495, allocations: 4.781 kB / 485.4 MB, free: 77.33 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.4495, allocations: 4.312 kB / 485.4 MB, free: 77.33 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001752/0.4513, allocations: 1.297 MB / 486.7 MB, free: 76.75 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001594/0.4515, allocations: 116 kB / 486.8 MB, free: 76.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007129/0.4522, allocations: 137 kB / 486.9 MB, free: 76.74 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006003/0.4528, allocations: 258 kB / 487.2 MB, free: 76.61 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-05/0.4529, allocations: 43.19 kB / 487.2 MB, free: 76.6 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006285/0.4591, allocations: 12.98 MB / 0.4885 GB, free: 63.98 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.4591, allocations: 0 / 0.4885 GB, free: 63.98 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004916/0.4641, allocations: 2.41 MB / 0.4908 GB, free: 63.13 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008564/0.4649, allocations: 433 kB / 0.4912 GB, free: 62.87 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003041/0.4652, allocations: 19.62 kB / 0.4913 GB, free: 62.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009509/0.4662, allocations: 84.95 kB / 0.4913 GB, free: 62.85 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003211/0.4665, allocations: 143.6 kB / 0.4915 GB, free: 62.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-05/0.4666, allocations: 51.28 kB / 0.4915 GB, free: 62.81 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00221/0.4688, allocations: 1.77 MB / 0.4932 GB, free: 62.17 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4688, allocations: 0 / 0.4932 GB, free: 62.17 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001485/0.4703, allocations: 0.6617 MB / 0.4939 GB, free: 62.12 MB / 430.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.000942/0.4712, allocations: 0.8129 MB / 0.4947 GB, free: 61.97 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003251/0.4745, allocations: 2.451 MB / 0.4971 GB, free: 60.36 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4745, allocations: 3.969 kB / 0.4971 GB, free: 60.36 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001929/0.4764, allocations: 1.898 MB / 0.4989 GB, free: 58.9 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002005/0.4784, allocations: 0.626 MB / 0.4995 GB, free: 58.62 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005374/0.4838, allocations: 4.745 MB / 0.5042 GB, free: 54.2 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006954/0.4845, allocations: 1.104 MB / 0.5053 GB, free: 53.06 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009791/0.4855, allocations: 391.4 kB / 0.5056 GB, free: 52.67 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002649/0.4857, allocations: 168.5 kB / 0.5058 GB, free: 52.51 MB / 430.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4857, allocations: 0 / 0.5058 GB, free: 52.51 MB / 430.1 MB Notification: Performance of Templates: time 0.05272/0.5384, allocations: 39.1 MB / 0.544 GB, free: 13.88 MB / 430.1 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=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.232919314876199]