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.00233/0.00233, allocations: 95.86 kB / 20.96 MB, free: 3.469 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.002586/0.002586, allocations: 149.1 kB / 24.26 MB, free: 176 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.554/1.554, allocations: 173.4 MB / 200.8 MB, free: 9.32 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 4.699e-06/4.699e-06, allocations: 4 kB / 267.3 MB, free: 6.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.257e-05/2.727e-05, allocations: 2.312 kB / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01659/0.01661, allocations: 13.48 MB / 280.8 MB, free: 9.219 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1382/0.1548, allocations: 19.34 MB / 300.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001957/0.1568, allocations: 193.4 kB / 300.3 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002665/0.1595, allocations: 1.041 MB / 301.4 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007119/0.1666, allocations: 2.402 MB / 303.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005146/0.1717, allocations: 1.444 MB / 305.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009166/0.1809, allocations: 6.635 MB / 311.8 MB, free: 9.434 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005965/0.1815, allocations: 246.1 kB / 312.1 MB, free: 9.273 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001927/0.1834, allocations: 1.534 MB / 313.6 MB, free: 8.523 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009708/0.1844, allocations: 0.7845 MB / 314.4 MB, free: 8.211 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002107/0.1846, allocations: 76.12 kB / 314.5 MB, free: 8.211 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003599/0.1882, allocations: 1.212 MB / 315.7 MB, free: 7.871 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002686/0.1885, allocations: 327 kB / 316 MB, free: 7.625 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001058/0.1895, allocations: 0.7148 MB / 316.7 MB, free: 6.938 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004003/0.1935, allocations: 3.698 MB / 320.4 MB, free: 3.535 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1935, allocations: 3.938 kB / 320.4 MB, free: 3.531 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1935, allocations: 0 / 320.4 MB, free: 3.531 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.501e-05/0.1936, allocations: 0 / 320.4 MB, free: 3.531 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.00475/0.1983, allocations: 3.93 MB / 324.3 MB, free: 15.55 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.794e-05/0.1984, allocations: 12.91 kB / 324.4 MB, free: 15.54 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006045/0.199, allocations: 438.2 kB / 324.8 MB, free: 15.11 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00466/0.2036, allocations: 2.709 MB / 327.5 MB, free: 12.38 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.102e-05/0.2037, allocations: 40.98 kB / 327.5 MB, free: 12.34 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001514/0.2039, allocations: 51.95 kB / 327.6 MB, free: 12.29 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001564/0.2054, allocations: 0.6562 MB / 328.2 MB, free: 11.62 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.2054, allocations: 0 / 328.2 MB, free: 11.62 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.692e-05/0.2055, allocations: 20 kB / 328.3 MB, free: 11.61 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.972e-05/0.2055, allocations: 27.92 kB / 328.3 MB, free: 11.58 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001645/0.2072, allocations: 0.7265 MB / 329 MB, free: 10.85 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009084/0.2163, allocations: 3.199 MB / 332.2 MB, free: 7.641 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002336/0.2186, allocations: 0.6042 MB / 332.8 MB, free: 7.027 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00224/0.2208, allocations: 0.7732 MB / 333.6 MB, free: 6.254 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04791/0.2688, allocations: 15.27 MB / 348.9 MB, free: 6.656 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001814/0.2706, allocations: 0.5662 MB / 349.4 MB, free: 6.074 MB / 298.7 MB Notification: Performance of pre-optimization done (n=96): time 4.879e-06/0.2706, allocations: 0 / 349.4 MB, free: 6.074 MB / 298.7 MB Notification: Performance of matching and sorting (n=99): time 0.01545/0.286, allocations: 4.138 MB / 353.6 MB, free: 1.863 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.096e-05/0.2861, allocations: 68.41 kB / 353.6 MB, free: 1.781 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005388/0.2915, allocations: 3.63 MB / 357.3 MB, free: 14.13 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001314/0.2916, allocations: 41.7 kB / 357.3 MB, free: 14.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001785/0.2934, allocations: 1.594 MB / 358.9 MB, free: 12.49 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000432/0.2938, allocations: 365.6 kB / 359.3 MB, free: 12.14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004827/0.2943, allocations: 264.1 kB / 359.5 MB, free: 11.87 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003122/0.2946, allocations: 0.5394 MB / 360.1 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/0.2957, allocations: 406.1 kB / 360.5 MB, free: 10.93 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001316/0.297, allocations: 0.6659 MB / 361.1 MB, free: 10.17 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003099/0.3001, allocations: 1.152 MB / 362.3 MB, free: 8.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.653e-06/0.3001, allocations: 0 / 362.3 MB, free: 8.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.006097/0.3062, allocations: 1.785 MB / 364.1 MB, free: 7.098 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.3063, allocations: 8 kB / 364.1 MB, free: 7.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001912/0.3064, allocations: 124 kB / 364.2 MB, free: 6.969 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009354/0.3074, allocations: 316.8 kB / 364.5 MB, free: 6.617 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008286/0.3082, allocations: 175.7 kB / 364.7 MB, free: 6.445 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01574/0.3239, allocations: 18.22 MB / 382.9 MB, free: 3.016 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/0.3253, allocations: 63.89 kB / 382.9 MB, free: 2.953 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001632/0.3255, allocations: 56 kB / 383 MB, free: 2.898 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.001022/0.3265, allocations: 476.3 kB / 383.5 MB, free: 2.422 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007257/0.3272, allocations: 413.6 kB / 383.9 MB, free: 2.016 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005197/0.3324, allocations: 1.967 MB / 385.8 MB, free: 15.99 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/0.3324, allocations: 8 kB / 385.8 MB, free: 15.98 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.3324, allocations: 4 kB / 385.8 MB, free: 15.98 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/0.3324, allocations: 11.81 kB / 385.9 MB, free: 15.97 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002981/0.3354, allocations: 1.857 MB / 387.7 MB, free: 14.1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000184/0.3356, allocations: 116 kB / 387.8 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006516/0.3362, allocations: 107.8 kB / 387.9 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000897/0.3371, allocations: 312.5 kB / 388.2 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001105/0.3373, allocations: 43.98 kB / 388.3 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01575/0.353, allocations: 18.22 MB / 406.5 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.353, allocations: 0 / 406.5 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005621/0.3586, allocations: 2.28 MB / 408.8 MB, free: 7.695 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001298/0.3599, allocations: 451.3 kB / 409.2 MB, free: 7.254 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003239/0.3603, allocations: 20.14 kB / 409.2 MB, free: 7.234 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008666/0.3611, allocations: 59.88 kB / 409.3 MB, free: 7.176 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004325/0.3616, allocations: 148.7 kB / 409.4 MB, free: 7.031 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/0.3617, allocations: 51.98 kB / 409.5 MB, free: 6.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003612/0.3653, allocations: 2.067 MB / 411.6 MB, free: 4.906 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3653, allocations: 4 kB / 411.6 MB, free: 4.902 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002108/0.3674, allocations: 0.6596 MB / 412.2 MB, free: 4.242 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.001628/0.369, allocations: 0.8761 MB / 413.1 MB, free: 3.504 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00474/0.3738, allocations: 2.942 MB / 416 MB, free: 364 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3738, allocations: 0 / 416 MB, free: 364 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003164/0.3769, allocations: 2.433 MB / 418.5 MB, free: 13.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002903/0.3798, allocations: 0.6568 MB / 419.1 MB, free: 13.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007831/0.3877, allocations: 4.637 MB / 423.8 MB, free: 8.371 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001256/0.3889, allocations: 1.111 MB / 424.9 MB, free: 7.223 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001245/0.3902, allocations: 383.4 kB / 425.3 MB, free: 6.844 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003526/0.3905, allocations: 176.5 kB / 425.4 MB, free: 6.672 MB / 378.7 MB Notification: Performance of SimCode: time 1.292e-06/0.3905, allocations: 4 kB / 425.4 MB, free: 6.668 MB / 378.7 MB Notification: Performance of Templates: time 0.1589/0.5494, allocations: 39.23 MB / 464.7 MB, free: 106.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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 240] 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.334340737899765]