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.001452/0.001452, allocations: 78.28 kB / 21.42 MB, free: 3.078 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.001704/0.001704, allocations: 150.3 kB / 24.81 MB, free: 9.285 MB / 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 0.9495/0.9495, allocations: 173.3 MB / 201.4 MB, free: 9.191 MB / 186.7 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 2.034e-06/2.034e-06, allocations: 0 / 268.4 MB, free: 6.199 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.332e-05/2.536e-05, allocations: 2.312 kB / 268.4 MB, free: 6.195 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008955/0.00898, allocations: 13.2 MB / 281.6 MB, free: 8.938 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1254/0.1344, allocations: 19.03 MB / 300.6 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009564/0.1353, allocations: 192.1 kB / 300.8 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001632/0.137, allocations: 1.038 MB / 301.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003728/0.1407, allocations: 2.414 MB / 304.3 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002231/0.1429, allocations: 1.443 MB / 305.7 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004911/0.1479, allocations: 6.76 MB / 312.5 MB, free: 9.781 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003567/0.1482, allocations: 240.7 kB / 312.7 MB, free: 9.625 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002086/0.1503, allocations: 2.954 MB / 315.7 MB, free: 8.352 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005852/0.1509, allocations: 0.807 MB / 316.5 MB, free: 7.723 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001446/0.151, allocations: 72 kB / 316.5 MB, free: 7.652 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002023/0.153, allocations: 1.214 MB / 317.7 MB, free: 6.473 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000146/0.1532, allocations: 328.7 kB / 318.1 MB, free: 6.164 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005021/0.1537, allocations: 0.7249 MB / 318.8 MB, free: 5.449 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002217/0.1559, allocations: 2.755 MB / 321.5 MB, free: 2.961 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.1559, allocations: 3.938 kB / 321.5 MB, free: 2.957 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1559, allocations: 4 kB / 321.6 MB, free: 2.953 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.297e-05/0.156, allocations: 0 / 321.6 MB, free: 2.953 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.002653/0.1586, allocations: 3.832 MB / 325.4 MB, free: 15.25 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.1587, allocations: 8.922 kB / 325.4 MB, free: 15.24 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003187/0.159, allocations: 437.5 kB / 325.8 MB, free: 14.81 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002108/0.1611, allocations: 2.632 MB / 328.5 MB, free: 12.16 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.377e-05/0.1611, allocations: 33 kB / 328.5 MB, free: 12.13 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.446e-05/0.1612, allocations: 58.67 kB / 328.5 MB, free: 12.07 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005623/0.1618, allocations: 0.4967 MB / 329 MB, free: 11.57 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.1618, allocations: 0 / 329 MB, free: 11.57 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.479e-05/0.1619, allocations: 20 kB / 329.1 MB, free: 11.55 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.1619, allocations: 23.73 kB / 329.1 MB, free: 11.53 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004148/0.1623, allocations: 415.7 kB / 329.5 MB, free: 11.12 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002325/0.1646, allocations: 2.224 MB / 331.7 MB, free: 9.078 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004548/0.1651, allocations: 400.8 kB / 332.1 MB, free: 8.691 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004991/0.1656, allocations: 0.5781 MB / 332.7 MB, free: 8.121 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01409/0.1797, allocations: 15.16 MB / 347.8 MB, free: 8.684 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003864/0.18, allocations: 396.2 kB / 348.2 MB, free: 8.293 MB / 298.7 MB Notification: Performance of pre-optimization done (n=96): time 2.084e-06/0.18, allocations: 0 / 348.2 MB, free: 8.293 MB / 298.7 MB Notification: Performance of matching and sorting (n=99): time 0.003374/0.1834, allocations: 2.47 MB / 350.7 MB, free: 5.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.575e-05/0.1835, allocations: 68.41 kB / 350.8 MB, free: 5.668 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001917/0.1854, allocations: 2.858 MB / 353.6 MB, free: 2.793 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.371e-05/0.1854, allocations: 45.7 kB / 353.7 MB, free: 2.742 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000863/0.1863, allocations: 1.505 MB / 355.2 MB, free: 1.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001963/0.1865, allocations: 353 kB / 355.5 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002257/0.1867, allocations: 244 kB / 355.8 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.1869, allocations: 0.5198 MB / 356.3 MB, free: 108 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002062/0.1871, allocations: 161.6 kB / 356.4 MB, free: 15.95 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003207/0.1874, allocations: 421.9 kB / 356.8 MB, free: 15.45 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006733/0.1881, allocations: 0.6292 MB / 357.5 MB, free: 14.74 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1881, allocations: 0 / 357.5 MB, free: 14.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00135/0.1894, allocations: 1.265 MB / 358.7 MB, free: 13.42 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.1895, allocations: 8 kB / 358.8 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002282/0.1897, allocations: 124 kB / 358.9 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003634/0.1901, allocations: 245.2 kB / 359.1 MB, free: 13.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003764/0.1904, allocations: 183.7 kB / 359.3 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006172/0.1966, allocations: 17.36 MB / 376.7 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005674/0.1972, allocations: 64.05 kB / 376.7 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003746/0.1975, allocations: 48 kB / 376.8 MB, free: 10.23 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.0003425/0.1979, allocations: 224.3 kB / 377 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002769/0.1982, allocations: 417.5 kB / 377.4 MB, free: 9.59 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001698/0.1999, allocations: 1.494 MB / 378.9 MB, free: 8.043 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1999, allocations: 8 kB / 378.9 MB, free: 8.035 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.1999, allocations: 8 kB / 378.9 MB, free: 8.027 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.1999, allocations: 11.86 kB / 378.9 MB, free: 8.016 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009685/0.2008, allocations: 1.072 MB / 380 MB, free: 6.918 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.202e-05/0.2009, allocations: 115.9 kB / 380.1 MB, free: 6.805 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002659/0.2012, allocations: 115.8 kB / 380.2 MB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003358/0.2015, allocations: 248.6 kB / 380.4 MB, free: 6.406 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.286e-05/0.2016, allocations: 43.98 kB / 380.5 MB, free: 6.363 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005919/0.2075, allocations: 17.36 MB / 397.8 MB, free: 3.859 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2075, allocations: 0 / 397.8 MB, free: 3.859 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00174/0.2092, allocations: 1.482 MB / 399.3 MB, free: 2.309 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004915/0.2097, allocations: 451.3 kB / 399.8 MB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001625/0.2099, allocations: 23.98 kB / 399.8 MB, free: 1.844 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000397/0.2103, allocations: 55.89 kB / 399.8 MB, free: 1.789 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002071/0.2105, allocations: 136.7 kB / 400 MB, free: 1.656 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.842e-05/0.2106, allocations: 47.98 kB / 400 MB, free: 1.609 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001003/0.2116, allocations: 1.511 MB / 401.5 MB, free: 92 kB / 346.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.2116, allocations: 0 / 401.5 MB, free: 92 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.001084/0.2126, allocations: 0.6596 MB / 402.2 MB, free: 15.43 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.0009805/0.2136, allocations: 0.9676 MB / 403.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001757/0.2154, allocations: 2.465 MB / 405.6 MB, free: 11.78 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2154, allocations: 0 / 405.6 MB, free: 11.78 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001116/0.2165, allocations: 2.207 MB / 407.8 MB, free: 9.371 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001299/0.2178, allocations: 0.6403 MB / 408.5 MB, free: 8.727 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003835/0.2216, allocations: 4.305 MB / 412.8 MB, free: 4.359 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002687/0.2219, allocations: 404.9 kB / 413.2 MB, free: 3.941 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000633/0.2225, allocations: 391.4 kB / 413.6 MB, free: 3.555 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008633/0.2234, allocations: 0.7283 MB / 414.3 MB, free: 2.824 MB / 362.7 MB Notification: Performance of SimCode: time 9.42e-07/0.2234, allocations: 0 / 414.3 MB, free: 2.824 MB / 362.7 MB Notification: Performance of Templates: time 0.1487/0.3721, allocations: 44.76 MB / 459 MB, free: 96.96 MB / 378.7 MB " [Timeout remaining time 660] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.8791149887256324]