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.00111/0.00111, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001603/0.002713, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.001056/0.001056, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001472/0.002528, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.9187/0.9187, allocations: 177.5 MB / 190 MB, free: 4.816 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08228/1.001, allocations: 53.87 MB / 243.9 MB, free: 14.88 MB / 250.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.784e-06/1.784e-06, allocations: 0 / 245.2 MB, free: 13.6 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.266e-05/1.445e-05, allocations: 2.312 kB / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.00841/0.008424, allocations: 13.31 MB / 258.5 MB, free: 232 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.1167/0.1251, allocations: 19.54 MB / 278 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001109/0.1262, allocations: 192.2 kB / 278.2 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001739/0.1279, allocations: 1.08 MB / 279.3 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004296/0.1322, allocations: 2.361 MB / 281.7 MB, free: 64 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003283/0.1355, allocations: 1.403 MB / 283.1 MB, free: 15.84 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006949/0.1425, allocations: 6.653 MB / 289.7 MB, free: 14.54 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004317/0.1429, allocations: 282.2 kB / 290 MB, free: 14.38 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002674/0.1456, allocations: 3.424 MB / 293.4 MB, free: 13.83 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006757/0.1462, allocations: 0.8116 MB / 294.2 MB, free: 13.67 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.1464, allocations: 75.31 kB / 294.3 MB, free: 13.67 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002088/0.1485, allocations: 1.265 MB / 295.6 MB, free: 13.57 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001634/0.1486, allocations: 263.1 kB / 295.8 MB, free: 13.44 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004895/0.1491, allocations: 0.6549 MB / 296.5 MB, free: 13.31 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001958/0.1511, allocations: 2.579 MB / 299.1 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.2e-05/0.1511, allocations: 4 kB / 299.1 MB, free: 11.36 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.916e-06/0.1511, allocations: 4 kB / 299.1 MB, free: 11.36 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.096e-05/0.1511, allocations: 0 / 299.1 MB, free: 11.36 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.002951/0.1541, allocations: 4.211 MB / 303.3 MB, free: 7.531 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.955e-05/0.1541, allocations: 12.62 kB / 303.3 MB, free: 7.52 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004716/0.1546, allocations: 263.7 kB / 303.6 MB, free: 7.262 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001926/0.1565, allocations: 2.111 MB / 305.7 MB, free: 5.129 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.1565, allocations: 33 kB / 305.7 MB, free: 5.094 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.961e-05/0.1566, allocations: 58.34 kB / 305.8 MB, free: 5.043 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005379/0.1572, allocations: 487.4 kB / 306.2 MB, free: 4.559 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.1572, allocations: 0 / 306.2 MB, free: 4.559 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.824e-05/0.1572, allocations: 16 kB / 306.3 MB, free: 4.543 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/0.1572, allocations: 27.92 kB / 306.3 MB, free: 4.516 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003208/0.1575, allocations: 211.8 kB / 306.5 MB, free: 4.305 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.1594, allocations: 1.445 MB / 307.9 MB, free: 2.895 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004075/0.1598, allocations: 395.8 kB / 308.3 MB, free: 2.516 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004324/0.1602, allocations: 0.5107 MB / 308.8 MB, free: 2.02 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02798/0.1882, allocations: 22.8 MB / 331.6 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004589/0.1887, allocations: 368.3 kB / 332 MB, free: 10.18 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 2.515e-06/0.1887, allocations: 0 / 332 MB, free: 10.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.004751/0.1934, allocations: 2.264 MB / 334.3 MB, free: 7.895 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.268e-05/0.1935, allocations: 68.39 kB / 334.3 MB, free: 7.812 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001761/0.1952, allocations: 2.418 MB / 336.7 MB, free: 5.883 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.29e-05/0.1953, allocations: 41.7 kB / 336.8 MB, free: 5.836 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003798/0.1957, allocations: 0.6012 MB / 337.4 MB, free: 5.383 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002232/0.1959, allocations: 350.8 kB / 337.7 MB, free: 5.066 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002544/0.1962, allocations: 200.8 kB / 337.9 MB, free: 4.887 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.348e-05/0.1963, allocations: 349.2 kB / 338.3 MB, free: 4.559 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002194/0.1965, allocations: 114.3 kB / 338.4 MB, free: 4.449 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003196/0.1968, allocations: 303.1 kB / 338.7 MB, free: 4.109 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006133/0.1974, allocations: 0.5271 MB / 339.2 MB, free: 3.559 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.1974, allocations: 3.938 kB / 339.2 MB, free: 3.555 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.001453/0.1989, allocations: 0.8865 MB / 340.1 MB, free: 2.668 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.1989, allocations: 8 kB / 340.1 MB, free: 2.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001021/0.199, allocations: 25.42 kB / 340.1 MB, free: 2.637 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004161/0.1994, allocations: 220.9 kB / 340.3 MB, free: 2.395 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005468/0.1999, allocations: 191.8 kB / 340.5 MB, free: 2.207 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005607/0.2056, allocations: 11.79 MB / 352.3 MB, free: 5.621 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006432/0.2062, allocations: 59.95 kB / 352.4 MB, free: 5.562 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.818e-05/0.2063, allocations: 28 kB / 352.4 MB, free: 5.535 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.0003238/0.2066, allocations: 171.3 kB / 352.6 MB, free: 5.363 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002734/0.2069, allocations: 267.6 kB / 352.8 MB, free: 5.102 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001939/0.2088, allocations: 1.194 MB / 354 MB, free: 3.871 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.2088, allocations: 8 kB / 354 MB, free: 3.863 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.2088, allocations: 4 kB / 354 MB, free: 3.859 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.2088, allocations: 3.984 kB / 354 MB, free: 3.855 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001201/0.21, allocations: 0.8655 MB / 354.9 MB, free: 3.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.882e-05/0.2101, allocations: 19.98 kB / 354.9 MB, free: 3.141 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003789/0.2105, allocations: 123.8 kB / 355 MB, free: 3.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000492/0.211, allocations: 380.4 kB / 355.4 MB, free: 2.645 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003858/0.2114, allocations: 228.4 kB / 355.6 MB, free: 2.395 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.358e-05/0.2115, allocations: 19.98 kB / 355.7 MB, free: 2.375 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005327/0.2168, allocations: 11.78 MB / 367.4 MB, free: 5.785 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.2168, allocations: 4 kB / 367.4 MB, free: 5.781 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/0.2182, allocations: 1.054 MB / 368.5 MB, free: 4.699 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002296/0.2184, allocations: 20 kB / 368.5 MB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000558/0.219, allocations: 51.95 kB / 368.6 MB, free: 4.629 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002478/0.2192, allocations: 124.7 kB / 368.7 MB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.127e-05/0.2193, allocations: 23.98 kB / 368.7 MB, free: 4.484 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00108/0.2204, allocations: 1.309 MB / 370 MB, free: 3.332 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2204, allocations: 0 / 370 MB, free: 3.332 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001151/0.2215, allocations: 0.6557 MB / 370.7 MB, free: 2.676 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.001158/0.2227, allocations: 0.9819 MB / 371.7 MB, free: 1.836 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001392/0.2241, allocations: 1.741 MB / 373.4 MB, free: 15.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.583e-05/0.2241, allocations: 40 kB / 373.4 MB, free: 15.92 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001054/0.2252, allocations: 1.552 MB / 375 MB, free: 14.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003482/0.2286, allocations: 5.903 MB / 380.9 MB, free: 7.234 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009714/0.2384, allocations: 4.099 MB / 385 MB, free: 3.098 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/0.2387, allocations: 408.9 kB / 385.4 MB, free: 2.676 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005964/0.2393, allocations: 387.4 kB / 385.8 MB, free: 2.293 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000802/0.2401, allocations: 0.6045 MB / 386.4 MB, free: 1.684 MB / 362.7 MB Notification: Performance of SimCode: time 7.92e-07/0.2401, allocations: 3.938 kB / 386.4 MB, free: 1.68 MB / 362.7 MB Notification: Performance of Templates: time 0.1383/0.3783, allocations: 45.44 MB / 431.8 MB, free: 114.2 MB / 394.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.8047487512230873]