Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001958/0.001958, allocations: 92.33 kB / 21.73 MB, free: 2.68 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002225/0.002225, allocations: 160.2 kB / 25.01 MB, free: 8.934 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.369/1.369, allocations: 158.6 MB / 186.8 MB, free: 2.895 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 250.3 MB, free: 3.961 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.664e-05/4.878e-05, allocations: 2.312 kB / 250.3 MB, free: 3.957 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.02221/0.02225, allocations: 11.44 MB / 261.8 MB, free: 8.469 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03607/0.05832, allocations: 16.73 MB / 278.5 MB, free: 7.668 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00299/0.06131, allocations: 193.8 kB / 278.7 MB, free: 7.477 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003569/0.06488, allocations: 1.009 MB / 279.7 MB, free: 6.461 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008656/0.07353, allocations: 2.366 MB / 282.1 MB, free: 4.078 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005342/0.07888, allocations: 1.402 MB / 283.5 MB, free: 2.664 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01214/0.09102, allocations: 6.492 MB / 290 MB, free: 12.15 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008447/0.09186, allocations: 253 kB / 290.2 MB, free: 11.87 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002505/0.09437, allocations: 1.41 MB / 291.6 MB, free: 10.46 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001232/0.0956, allocations: 0.7475 MB / 292.4 MB, free: 9.707 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002029/0.0958, allocations: 76 kB / 292.5 MB, free: 9.633 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003542/0.09935, allocations: 1.093 MB / 293.5 MB, free: 8.539 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004063/0.09975, allocations: 325.7 kB / 293.9 MB, free: 8.219 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001483/0.1012, allocations: 0.7281 MB / 294.6 MB, free: 7.488 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006205/0.1074, allocations: 3.702 MB / 298.3 MB, free: 3.773 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.1074, allocations: 7.984 kB / 298.3 MB, free: 3.766 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1075, allocations: 0 / 298.3 MB, free: 3.766 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.227e-05/0.1075, allocations: 0 / 298.3 MB, free: 3.766 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.006534/0.1141, allocations: 3.59 MB / 301.9 MB, free: 120 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.1141, allocations: 11.98 kB / 301.9 MB, free: 108 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.118/0.2321, allocations: 435.8 kB / 302.3 MB, free: 60.14 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004694/0.2367, allocations: 2.733 MB / 305.1 MB, free: 59.22 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.537e-05/0.2368, allocations: 36.89 kB / 305.1 MB, free: 59.21 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001482/0.2369, allocations: 56.55 kB / 305.2 MB, free: 59.19 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001598/0.2385, allocations: 0.7639 MB / 305.9 MB, free: 58.92 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.2386, allocations: 0 / 305.9 MB, free: 58.92 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.842e-05/0.2386, allocations: 21.22 kB / 305.9 MB, free: 58.91 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.438e-05/0.2387, allocations: 23.28 kB / 306 MB, free: 58.9 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001872/0.2405, allocations: 0.8562 MB / 306.8 MB, free: 58.68 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00577/0.2463, allocations: 2.677 MB / 309.5 MB, free: 57.46 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00171/0.248, allocations: 0.7211 MB / 310.2 MB, free: 57.19 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001406/0.2494, allocations: 0.8746 MB / 311.1 MB, free: 56.88 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02188/0.2713, allocations: 15.2 MB / 326.3 MB, free: 43.04 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001026/0.2723, allocations: 0.5923 MB / 326.9 MB, free: 42.44 MB / 282.7 MB Notification: Performance of pre-optimization done (n=96): time 3.777e-06/0.2723, allocations: 1.078 kB / 326.9 MB, free: 42.44 MB / 282.7 MB Notification: Performance of matching and sorting (n=99): time 0.01095/0.2833, allocations: 4.56 MB / 331.4 MB, free: 37.89 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/0.2833, allocations: 72.41 kB / 331.5 MB, free: 37.8 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002463/0.2858, allocations: 2.719 MB / 334.2 MB, free: 35.08 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.559e-05/0.2858, allocations: 41.7 kB / 334.3 MB, free: 35.03 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007607/0.2866, allocations: 1.3 MB / 335.6 MB, free: 33.75 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001896/0.2868, allocations: 345.4 kB / 335.9 MB, free: 33.45 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002933/0.2871, allocations: 234.4 kB / 336.1 MB, free: 33.21 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.234e-05/0.2871, allocations: 345.9 kB / 336.5 MB, free: 32.87 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001114/0.2883, allocations: 474 kB / 336.9 MB, free: 32.41 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001191/0.2894, allocations: 0.6508 MB / 337.6 MB, free: 31.69 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002315/0.2918, allocations: 1.13 MB / 338.7 MB, free: 30.5 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.2918, allocations: 0 / 338.7 MB, free: 30.5 MB / 282.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003574/0.2953, allocations: 1.877 MB / 340.6 MB, free: 28.58 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.2954, allocations: 8.625 kB / 340.6 MB, free: 28.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001261/0.2955, allocations: 124 kB / 340.7 MB, free: 28.45 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007103/0.2962, allocations: 282.5 kB / 341 MB, free: 28.15 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008525/0.297, allocations: 203.6 kB / 341.2 MB, free: 27.95 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006022/0.3031, allocations: 12.99 MB / 354.2 MB, free: 13.96 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/0.3045, allocations: 99.2 kB / 354.3 MB, free: 13.87 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.3046, allocations: 60 kB / 354.3 MB, free: 13.81 MB / 282.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.0007066/0.3053, allocations: 426.9 kB / 354.8 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003913/0.3057, allocations: 417.6 kB / 355.2 MB, free: 12.98 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004244/0.31, allocations: 2.062 MB / 357.2 MB, free: 10.9 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.31, allocations: 11.98 kB / 357.2 MB, free: 10.89 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.31, allocations: 8 kB / 357.2 MB, free: 10.88 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.31, allocations: 7.922 kB / 357.3 MB, free: 10.87 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001568/0.3116, allocations: 1.294 MB / 358.6 MB, free: 9.543 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001177/0.3117, allocations: 120 kB / 358.7 MB, free: 9.426 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007238/0.3124, allocations: 139.8 kB / 358.8 MB, free: 9.289 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00066/0.3131, allocations: 281.6 kB / 359.1 MB, free: 8.984 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001/0.3132, allocations: 43.97 kB / 359.1 MB, free: 8.941 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008379/0.3216, allocations: 13.01 MB / 372.1 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3216, allocations: 4.188 kB / 372.1 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006572/0.3281, allocations: 2.426 MB / 374.6 MB, free: 8.426 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001372/0.3295, allocations: 465.2 kB / 375 MB, free: 7.973 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003225/0.3298, allocations: 16 kB / 375 MB, free: 7.957 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001057/0.3309, allocations: 87.83 kB / 375.1 MB, free: 7.871 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004574/0.3313, allocations: 144.7 kB / 375.3 MB, free: 7.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001234/0.3315, allocations: 51.98 kB / 375.3 MB, free: 7.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.002912/0.3344, allocations: 1.786 MB / 377.1 MB, free: 5.887 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3344, allocations: 0 / 377.1 MB, free: 5.887 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001895/0.3363, allocations: 0.6646 MB / 377.8 MB, free: 5.254 MB / 298.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.00154/0.3378, allocations: 0.8815 MB / 378.6 MB, free: 4.359 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004854/0.3427, allocations: 2.455 MB / 381.1 MB, free: 1.75 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3427, allocations: 0 / 381.1 MB, free: 1.75 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003193/0.3459, allocations: 1.909 MB / 383 MB, free: 15.69 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002309/0.3482, allocations: 0.5549 MB / 383.6 MB, free: 15.13 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008127/0.3563, allocations: 4.655 MB / 388.2 MB, free: 10.41 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001389/0.3577, allocations: 1.108 MB / 389.3 MB, free: 9.273 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001359/0.359, allocations: 395.3 kB / 389.7 MB, free: 8.883 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003702/0.3594, allocations: 180.4 kB / 389.9 MB, free: 8.703 MB / 314.7 MB Notification: Performance of SimCode: time 1.232e-06/0.3594, allocations: 0 / 389.9 MB, free: 8.703 MB / 314.7 MB Notification: Performance of Templates: time 0.07855/0.438, allocations: 39.3 MB / 429.2 MB, free: 1.352 MB / 346.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.325027295970358]