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.001913/0.001913, allocations: 96.25 kB / 20.96 MB, free: 3.461 MB / 18.57 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.002213/0.002213, allocations: 156.9 kB / 24.27 MB, free: 164 kB / 18.57 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.471/1.471, allocations: 177 MB / 204.5 MB, free: 5.621 MB / 186.7 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 1.503e-06/1.503e-06, allocations: 0 / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.276e-05/2.427e-05, allocations: 5.266 kB / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01526/0.01529, allocations: 11.99 MB / 284.2 MB, free: 5.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1605/0.1758, allocations: 17.58 MB / 301.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001866/0.1777, allocations: 191.2 kB / 301.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00278/0.1805, allocations: 1.05 MB / 303 MB, free: 12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007947/0.1884, allocations: 2.398 MB / 305.4 MB, free: 10.6 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004786/0.1932, allocations: 1.45 MB / 306.8 MB, free: 9.852 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00826/0.2015, allocations: 6.702 MB / 313.5 MB, free: 6.625 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005366/0.202, allocations: 243.1 kB / 313.8 MB, free: 6.461 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001736/0.2037, allocations: 1.544 MB / 315.3 MB, free: 5.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008387/0.2046, allocations: 0.7771 MB / 316.1 MB, free: 4.992 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001455/0.2047, allocations: 76 kB / 316.2 MB, free: 4.918 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003113/0.2078, allocations: 1.217 MB / 317.4 MB, free: 3.699 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001963/0.208, allocations: 321.7 kB / 317.7 MB, free: 3.383 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007119/0.2087, allocations: 0.7243 MB / 318.4 MB, free: 2.656 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003852/0.2126, allocations: 3.686 MB / 322.1 MB, free: 14.96 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.2126, allocations: 0 / 322.1 MB, free: 14.96 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2126, allocations: 4 kB / 322.1 MB, free: 14.95 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.56e-05/0.2127, allocations: 0 / 322.1 MB, free: 14.95 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.006225/0.2189, allocations: 3.572 MB / 325.7 MB, free: 11.33 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.2189, allocations: 11.98 kB / 325.7 MB, free: 11.32 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006292/0.2196, allocations: 437.5 kB / 326.1 MB, free: 10.89 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004697/0.2243, allocations: 2.718 MB / 328.8 MB, free: 8.07 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.898e-05/0.2243, allocations: 37 kB / 328.9 MB, free: 8.031 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000146/0.2244, allocations: 55.89 kB / 328.9 MB, free: 7.977 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001714/0.2262, allocations: 0.7577 MB / 329.7 MB, free: 7.211 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.2262, allocations: 0 / 329.7 MB, free: 7.211 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.211e-05/0.2263, allocations: 24 kB / 329.7 MB, free: 7.188 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.89e-05/0.2263, allocations: 27.86 kB / 329.7 MB, free: 7.16 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002012/0.2283, allocations: 0.8553 MB / 330.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005527/0.2338, allocations: 2.659 MB / 333.3 MB, free: 3.605 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001906/0.2357, allocations: 0.7324 MB / 334 MB, free: 2.867 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001875/0.2376, allocations: 0.8604 MB / 334.9 MB, free: 2.004 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02991/0.2675, allocations: 15.16 MB / 350 MB, free: 2.465 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001356/0.2689, allocations: 0.5927 MB / 350.6 MB, free: 1.859 MB / 298.7 MB Notification: Performance of pre-optimization done (n=96): time 2.956e-06/0.2689, allocations: 0 / 350.6 MB, free: 1.859 MB / 298.7 MB Notification: Performance of matching and sorting (n=99): time 0.01288/0.2817, allocations: 4.549 MB / 355.2 MB, free: 13.25 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.854e-05/0.2818, allocations: 68.34 kB / 355.2 MB, free: 13.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003972/0.2858, allocations: 2.7 MB / 357.9 MB, free: 10.45 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.907e-05/0.2859, allocations: 41.7 kB / 358 MB, free: 10.4 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001436/0.2873, allocations: 1.315 MB / 359.3 MB, free: 9.082 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003809/0.2877, allocations: 349 kB / 359.6 MB, free: 8.738 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004084/0.2881, allocations: 226.5 kB / 359.8 MB, free: 8.512 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.2883, allocations: 345.9 kB / 360.2 MB, free: 8.168 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001361/0.2897, allocations: 482 kB / 360.6 MB, free: 7.699 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/0.2912, allocations: 0.6431 MB / 361.3 MB, free: 6.988 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002838/0.294, allocations: 1.126 MB / 362.4 MB, free: 5.801 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.294, allocations: 8 kB / 362.4 MB, free: 5.793 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004574/0.2986, allocations: 1.874 MB / 364.3 MB, free: 3.883 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.2986, allocations: 8 kB / 364.3 MB, free: 3.875 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001814/0.2988, allocations: 118 kB / 364.4 MB, free: 3.762 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009023/0.2997, allocations: 292.7 kB / 364.7 MB, free: 3.445 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009196/0.3006, allocations: 195.6 kB / 364.9 MB, free: 3.254 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01272/0.3133, allocations: 13 MB / 377.9 MB, free: 5.246 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/0.3147, allocations: 92.02 kB / 378 MB, free: 5.156 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001322/0.3148, allocations: 60 kB / 378 MB, free: 5.098 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.0008591/0.3157, allocations: 425.6 kB / 378.5 MB, free: 4.672 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005632/0.3162, allocations: 409.6 kB / 378.9 MB, free: 4.27 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005438/0.3217, allocations: 2.056 MB / 380.9 MB, free: 2.176 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.3217, allocations: 11.94 kB / 380.9 MB, free: 2.164 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/0.3217, allocations: 7.938 kB / 380.9 MB, free: 2.156 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.3217, allocations: 7.984 kB / 380.9 MB, free: 2.148 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001983/0.3237, allocations: 1.301 MB / 382.2 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001723/0.3238, allocations: 112 kB / 382.4 MB, free: 0.707 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000765/0.3246, allocations: 135.8 kB / 382.5 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008411/0.3254, allocations: 280.3 kB / 382.8 MB, free: 276 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.3255, allocations: 43.98 kB / 382.8 MB, free: 232 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0131/0.3386, allocations: 13 MB / 395.8 MB, free: 2.195 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3387, allocations: 3.938 kB / 395.8 MB, free: 2.191 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006347/0.345, allocations: 2.422 MB / 398.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001331/0.3463, allocations: 459.3 kB / 398.7 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003215/0.3467, allocations: 23.94 kB / 398.7 MB, free: 15.24 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001/0.3477, allocations: 75.89 kB / 398.8 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000401/0.3481, allocations: 148.7 kB / 398.9 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001207/0.3482, allocations: 55.97 kB / 399 MB, free: 14.96 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002812/0.351, allocations: 1.762 MB / 400.7 MB, free: 13.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.351, allocations: 0 / 400.7 MB, free: 13.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001696/0.3527, allocations: 0.6712 MB / 401.4 MB, free: 12.52 MB / 362.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.001482/0.3542, allocations: 0.8741 MB / 402.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004778/0.3589, allocations: 2.447 MB / 404.7 MB, free: 9.043 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3589, allocations: 4 kB / 404.7 MB, free: 9.039 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00333/0.3623, allocations: 1.905 MB / 406.6 MB, free: 6.984 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002567/0.3648, allocations: 0.6602 MB / 407.3 MB, free: 6.328 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00767/0.3725, allocations: 4.635 MB / 411.9 MB, free: 1.633 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001591/0.3741, allocations: 1.111 MB / 413 MB, free: 492 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001258/0.3754, allocations: 391.4 kB / 413.4 MB, free: 96 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003786/0.3757, allocations: 172.5 kB / 413.6 MB, free: 15.92 MB / 378.7 MB Notification: Performance of SimCode: time 1.032e-06/0.3757, allocations: 0 / 413.6 MB, free: 15.92 MB / 378.7 MB Notification: Performance of Templates: time 0.1637/0.5394, allocations: 39.15 MB / 452.7 MB, free: 115.2 MB / 378.7 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.174275111057796]