Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001913/0.001913, allocations: 92.62 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002206/0.002206, allocations: 149.4 kB / 24.25 MB, free: 184 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 173.4 MB / 200.8 MB, free: 9.305 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.773e-05/2.936e-05, allocations: 2.312 kB / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01563/0.01566, allocations: 11.98 MB / 279.3 MB, free: 10.7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1309/0.1465, allocations: 17.54 MB / 296.8 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001721/0.1483, allocations: 194.3 kB / 297 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002577/0.1508, allocations: 1.046 MB / 298.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006819/0.1577, allocations: 2.401 MB / 300.5 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004789/0.1624, allocations: 1.449 MB / 301.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01042/0.1729, allocations: 6.617 MB / 308.5 MB, free: 10.56 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007053/0.1736, allocations: 249.7 kB / 308.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003012/0.1766, allocations: 1.543 MB / 310.3 MB, free: 9.684 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001167/0.1777, allocations: 0.7773 MB / 311.1 MB, free: 9.375 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001813/0.1779, allocations: 80.59 kB / 311.2 MB, free: 9.371 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00349/0.1814, allocations: 1.204 MB / 312.4 MB, free: 9.039 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002601/0.1817, allocations: 325.4 kB / 312.7 MB, free: 8.793 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001249/0.1829, allocations: 0.7176 MB / 313.4 MB, free: 8.402 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004001/0.1869, allocations: 3.687 MB / 317.1 MB, free: 5.012 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1869, allocations: 0 / 317.1 MB, free: 5.012 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1869, allocations: 0 / 317.1 MB, free: 5.012 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.295e-05/0.187, allocations: 0 / 317.1 MB, free: 5.012 MB / 266.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.004039/0.191, allocations: 3.57 MB / 320.7 MB, free: 1.391 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.1911, allocations: 16.91 kB / 320.7 MB, free: 1.375 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003989/0.1915, allocations: 433.5 kB / 321.1 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004119/0.1956, allocations: 2.72 MB / 323.8 MB, free: 14.21 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.951e-05/0.1956, allocations: 32.98 kB / 323.8 MB, free: 14.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/0.1958, allocations: 51.95 kB / 323.9 MB, free: 14.13 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001743/0.1975, allocations: 0.7655 MB / 324.7 MB, free: 13.36 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.1975, allocations: 0 / 324.7 MB, free: 13.36 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.269e-05/0.1976, allocations: 20 kB / 324.7 MB, free: 13.34 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.533e-05/0.1976, allocations: 27.92 kB / 324.7 MB, free: 13.31 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00207/0.1997, allocations: 0.8553 MB / 325.6 MB, free: 12.46 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005473/0.2052, allocations: 2.661 MB / 328.2 MB, free: 9.781 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001922/0.2071, allocations: 0.7317 MB / 329 MB, free: 9.043 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001688/0.2088, allocations: 0.8642 MB / 329.8 MB, free: 8.18 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03058/0.2394, allocations: 15.13 MB / 345 MB, free: 8.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001385/0.2408, allocations: 0.5919 MB / 345.5 MB, free: 8.121 MB / 298.7 MB Notification: Performance of pre-optimization done (n=96): time 2.856e-06/0.2408, allocations: 3.938 kB / 345.6 MB, free: 8.117 MB / 298.7 MB Notification: Performance of matching and sorting (n=99): time 0.01347/0.2542, allocations: 4.556 MB / 350.1 MB, free: 3.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.663e-05/0.2543, allocations: 60.41 kB / 350.2 MB, free: 3.426 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004155/0.2584, allocations: 2.7 MB / 352.9 MB, free: 0.707 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001333/0.2586, allocations: 49.7 kB / 352.9 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001608/0.2602, allocations: 1.314 MB / 354.2 MB, free: 15.38 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004512/0.2606, allocations: 348.7 kB / 354.6 MB, free: 15.05 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004449/0.2611, allocations: 230.5 kB / 354.8 MB, free: 14.82 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002231/0.2613, allocations: 345.9 kB / 355.1 MB, free: 14.47 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001402/0.2627, allocations: 474 kB / 355.6 MB, free: 14.01 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/0.2643, allocations: 0.647 MB / 356.2 MB, free: 13.29 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002894/0.2672, allocations: 1.129 MB / 357.4 MB, free: 12.1 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.2672, allocations: 4 kB / 357.4 MB, free: 12.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004984/0.2721, allocations: 1.874 MB / 359.3 MB, free: 10.19 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.2722, allocations: 4 kB / 359.3 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001945/0.2724, allocations: 127.9 kB / 359.4 MB, free: 10.06 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009242/0.2733, allocations: 280.8 kB / 359.7 MB, free: 9.754 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009674/0.2743, allocations: 195.7 kB / 359.8 MB, free: 9.562 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01315/0.2874, allocations: 13 MB / 372.8 MB, free: 11.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001484/0.2889, allocations: 95.95 kB / 372.9 MB, free: 11.46 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001587/0.289, allocations: 56 kB / 373 MB, free: 11.41 MB / 330.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.0009232/0.29, allocations: 421.6 kB / 373.4 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006478/0.2906, allocations: 413.6 kB / 373.8 MB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005516/0.2961, allocations: 2.061 MB / 375.9 MB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.69e-05/0.2961, allocations: 8 kB / 375.9 MB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.2962, allocations: 4 kB / 375.9 MB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/0.2962, allocations: 7.922 kB / 375.9 MB, free: 8.457 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00206/0.2982, allocations: 1.302 MB / 377.2 MB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002629/0.2985, allocations: 116 kB / 377.3 MB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007905/0.2993, allocations: 131.8 kB / 377.4 MB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008567/0.3001, allocations: 284.2 kB / 377.7 MB, free: 6.594 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001083/0.3002, allocations: 43.98 kB / 377.8 MB, free: 6.551 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01289/0.3131, allocations: 13.01 MB / 390.8 MB, free: 8.52 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3131, allocations: 0 / 390.8 MB, free: 8.52 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006317/0.3195, allocations: 2.421 MB / 393.2 MB, free: 6.047 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001107/0.3206, allocations: 463.2 kB / 393.6 MB, free: 5.594 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003277/0.3209, allocations: 20 kB / 393.7 MB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.3219, allocations: 83.83 kB / 393.7 MB, free: 5.492 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004095/0.3223, allocations: 140.8 kB / 393.9 MB, free: 5.355 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/0.3224, allocations: 52.12 kB / 393.9 MB, free: 5.305 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00305/0.3255, allocations: 1.77 MB / 395.7 MB, free: 3.527 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3255, allocations: 0 / 395.7 MB, free: 3.527 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00183/0.3273, allocations: 0.6635 MB / 396.4 MB, free: 2.863 MB / 346.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.001498/0.3288, allocations: 0.8798 MB / 397.2 MB, free: 2.121 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004806/0.3336, allocations: 2.459 MB / 399.7 MB, free: 15.51 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3336, allocations: 0 / 399.7 MB, free: 15.51 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003288/0.3369, allocations: 1.897 MB / 401.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002808/0.3397, allocations: 0.6572 MB / 402.3 MB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007759/0.3475, allocations: 4.635 MB / 406.9 MB, free: 8.109 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001312/0.3488, allocations: 1.111 MB / 408 MB, free: 6.961 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001288/0.3501, allocations: 387.4 kB / 408.4 MB, free: 6.578 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003615/0.3504, allocations: 172.5 kB / 408.5 MB, free: 6.41 MB / 362.7 MB Notification: Performance of SimCode: time 1.293e-06/0.3504, allocations: 0 / 408.5 MB, free: 6.41 MB / 362.7 MB Notification: Performance of Templates: time 0.1679/0.5183, allocations: 39.14 MB / 447.7 MB, free: 122.1 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.119447667966597]