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.001802/0.001802, allocations: 71.44 kB / 21.24 MB, free: 0.5469 MB / 14.72 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.002033/0.002033, allocations: 150.7 kB / 24.49 MB, free: 3.73 MB / 14.72 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.408/1.408, allocations: 173.4 MB / 201.1 MB, free: 12.71 MB / 190.1 MB " [Timeout remaining time 179] 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 0.001529/0.001529, allocations: 51.45 kB / 319.4 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08509/0.08662, allocations: 52.16 MB / 371.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01332/0.09994, allocations: 11.98 MB / 383.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02295/0.1229, allocations: 17.54 MB / 401.1 MB, free: 9.715 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001373/0.1243, allocations: 189.8 kB / 401.3 MB, free: 9.527 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00245/0.1267, allocations: 1.036 MB / 402.3 MB, free: 8.48 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005867/0.1326, allocations: 2.321 MB / 404.6 MB, free: 6.145 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003655/0.1362, allocations: 1.414 MB / 406 MB, free: 4.723 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00945/0.1457, allocations: 6.474 MB / 412.5 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004764/0.1462, allocations: 249 kB / 412.8 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001495/0.1477, allocations: 1.14 MB / 413.9 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001424/0.1491, allocations: 1.044 MB / 414.9 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001875/0.1493, allocations: 76 kB / 415 MB, free: 11.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002967/0.1522, allocations: 1.194 MB / 416.2 MB, free: 10.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003438/0.1526, allocations: 329.6 kB / 416.5 MB, free: 10.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001092/0.1537, allocations: 0.9741 MB / 417.5 MB, free: 9.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004428/0.1581, allocations: 3.741 MB / 421.2 MB, free: 5.422 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1581, allocations: 0 / 421.2 MB, free: 5.422 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1581, allocations: 0 / 421.2 MB, free: 5.422 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.906e-05/0.1581, allocations: 0 / 421.2 MB, free: 5.422 MB / 382.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.005381/0.1635, allocations: 3.606 MB / 424.8 MB, free: 1.762 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.1635, allocations: 8.922 kB / 424.9 MB, free: 1.754 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004517/0.164, allocations: 397.5 kB / 425.2 MB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003844/0.1678, allocations: 2.386 MB / 427.6 MB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.532e-05/0.1679, allocations: 29 kB / 427.7 MB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.168, allocations: 51.95 kB / 427.7 MB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001597/0.1696, allocations: 0.7655 MB / 428.5 MB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.1696, allocations: 0 / 428.5 MB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.689e-05/0.1697, allocations: 16 kB / 428.5 MB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.304e-05/0.1697, allocations: 23.92 kB / 428.5 MB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001937/0.1716, allocations: 0.8631 MB / 429.4 MB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004804/0.1764, allocations: 2.663 MB / 432 MB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00182/0.1783, allocations: 0.7247 MB / 432.8 MB, free: 9.684 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001577/0.1798, allocations: 0.872 MB / 433.6 MB, free: 8.805 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02625/0.2061, allocations: 13.63 MB / 447.3 MB, free: 10.79 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001294/0.2074, allocations: 0.6074 MB / 447.9 MB, free: 10.17 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.665e-06/0.2074, allocations: 0 / 447.9 MB, free: 10.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01287/0.2202, allocations: 4.525 MB / 452.4 MB, free: 5.582 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.118e-05/0.2203, allocations: 72.33 kB / 452.5 MB, free: 5.496 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00356/0.2239, allocations: 2.7 MB / 455.2 MB, free: 2.781 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.793e-05/0.2239, allocations: 49.62 kB / 455.2 MB, free: 2.727 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001288/0.2252, allocations: 1.304 MB / 456.5 MB, free: 1.418 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003134/0.2255, allocations: 345.1 kB / 456.9 MB, free: 1.078 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003711/0.2259, allocations: 234.4 kB / 457.1 MB, free: 0.8438 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.2261, allocations: 349.9 kB / 457.4 MB, free: 0.4961 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00137/0.2275, allocations: 478 kB / 457.9 MB, free: 32 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001542/0.229, allocations: 0.6432 MB / 458.5 MB, free: 15.32 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002865/0.2319, allocations: 1.133 MB / 459.7 MB, free: 14.12 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.2319, allocations: 4 kB / 459.7 MB, free: 14.12 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004197/0.2361, allocations: 1.827 MB / 461.5 MB, free: 12.25 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.2361, allocations: 8.531 kB / 461.5 MB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000187/0.2363, allocations: 123.9 kB / 461.6 MB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007241/0.237, allocations: 276.3 kB / 461.9 MB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009445/0.2379, allocations: 195.7 kB / 462.1 MB, free: 11.63 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1709/0.4088, allocations: 12.98 MB / 475.1 MB, free: 90.37 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001408/0.4102, allocations: 90.44 kB / 475.2 MB, free: 90.37 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001906/0.4104, allocations: 55.88 kB / 475.2 MB, free: 90.37 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.0007741/0.4112, allocations: 423.1 kB / 475.6 MB, free: 90.26 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000485/0.4116, allocations: 391.2 kB / 476 MB, free: 90.26 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004586/0.4162, allocations: 2.053 MB / 478.1 MB, free: 90.09 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.4162, allocations: 11.56 kB / 478.1 MB, free: 90.09 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.4162, allocations: 10.78 kB / 478.1 MB, free: 90.09 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.4163, allocations: 5.422 kB / 478.1 MB, free: 90.09 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001514/0.4178, allocations: 1.294 MB / 479.4 MB, free: 89.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001679/0.4179, allocations: 115 kB / 479.5 MB, free: 89.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007543/0.4187, allocations: 137.5 kB / 479.6 MB, free: 89.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006391/0.4193, allocations: 265.2 kB / 479.9 MB, free: 89.85 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.501e-05/0.4194, allocations: 42.89 kB / 479.9 MB, free: 89.85 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005826/0.4253, allocations: 12.98 MB / 492.9 MB, free: 77.75 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4253, allocations: 0 / 492.9 MB, free: 77.75 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004986/0.4302, allocations: 2.408 MB / 495.3 MB, free: 76.96 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007799/0.431, allocations: 433.6 kB / 495.7 MB, free: 76.72 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002704/0.4313, allocations: 23.88 kB / 495.8 MB, free: 76.71 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009823/0.4323, allocations: 79.78 kB / 495.8 MB, free: 76.7 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003221/0.4326, allocations: 147.2 kB / 496 MB, free: 76.67 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.917e-05/0.4327, allocations: 52.39 kB / 496 MB, free: 76.66 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001984/0.4347, allocations: 1.766 MB / 497.8 MB, free: 76.02 MB / 430.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4347, allocations: 1.375 kB / 497.8 MB, free: 76.02 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001263/0.4359, allocations: 0.6539 MB / 498.5 MB, free: 75.98 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.0009078/0.4369, allocations: 0.8129 MB / 499.3 MB, free: 75.85 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003377/0.4402, allocations: 2.457 MB / 0.49 GB, free: 74.24 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.4402, allocations: 1 kB / 0.49 GB, free: 74.24 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002024/0.4423, allocations: 1.905 MB / 0.4918 GB, free: 72.79 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002142/0.4444, allocations: 0.6258 MB / 0.4924 GB, free: 72.52 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004735/0.4491, allocations: 4.736 MB / 0.4971 GB, free: 68.06 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006661/0.4498, allocations: 1.1 MB / 0.4981 GB, free: 66.97 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008611/0.4507, allocations: 399.3 kB / 0.4985 GB, free: 66.58 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000239/0.4509, allocations: 168.5 kB / 0.4987 GB, free: 66.41 MB / 430.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4509, allocations: 0 / 0.4987 GB, free: 66.41 MB / 430.1 MB Notification: Performance of Templates: time 0.04893/0.4998, allocations: 39.08 MB / 0.5368 GB, free: 27.87 MB / 430.1 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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/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.083044892991893]