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.00117/0.00117, allocations: 87.67 kB / 21.19 MB, free: 3.371 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.001493/0.001493, allocations: 156.5 kB / 24.55 MB, free: 16 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 0.9691/0.9691, allocations: 177 MB / 204.8 MB, free: 5.586 MB / 186.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.292e-06/1.292e-06, allocations: 0 / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.385e-05/1.514e-05, allocations: 2.312 kB / 272.9 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008756/0.008771, allocations: 13.55 MB / 286.5 MB, free: 3.852 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1172/0.126, allocations: 19.44 MB / 305.9 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001034/0.127, allocations: 195.9 kB / 306.1 MB, free: 10.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001867/0.1289, allocations: 1.034 MB / 307.1 MB, free: 10.15 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00413/0.133, allocations: 2.396 MB / 309.5 MB, free: 8.664 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002654/0.1357, allocations: 1.453 MB / 311 MB, free: 7.703 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005915/0.1416, allocations: 6.834 MB / 317.8 MB, free: 4.402 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004634/0.142, allocations: 243.5 kB / 318 MB, free: 4.238 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001138/0.1432, allocations: 1.537 MB / 319.6 MB, free: 2.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005776/0.1437, allocations: 0.7823 MB / 320.4 MB, free: 1.965 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000113/0.1439, allocations: 80 kB / 320.4 MB, free: 1.887 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001767/0.1456, allocations: 1.21 MB / 321.6 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.1458, allocations: 325.7 kB / 322 MB, free: 364 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005346/0.1463, allocations: 0.7203 MB / 322.7 MB, free: 15.63 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002576/0.1489, allocations: 2.747 MB / 325.4 MB, free: 12.88 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1489, allocations: 4 kB / 325.4 MB, free: 12.87 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1489, allocations: 0 / 325.4 MB, free: 12.87 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.046e-05/0.149, allocations: 3.938 kB / 325.4 MB, free: 12.87 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.003306/0.1523, allocations: 3.778 MB / 329.2 MB, free: 9.031 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.1523, allocations: 11.98 kB / 329.2 MB, free: 9.02 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003935/0.1527, allocations: 438.4 kB / 329.7 MB, free: 8.59 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002405/0.1551, allocations: 2.717 MB / 332.4 MB, free: 5.773 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.407e-05/0.1551, allocations: 37 kB / 332.4 MB, free: 5.734 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.819e-05/0.1552, allocations: 55.94 kB / 332.5 MB, free: 5.68 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007051/0.1559, allocations: 0.5475 MB / 333 MB, free: 5.121 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.1559, allocations: 0 / 333 MB, free: 5.121 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.663e-05/0.156, allocations: 23.94 kB / 333 MB, free: 5.098 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.67e-05/0.156, allocations: 19.98 kB / 333.1 MB, free: 5.078 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005651/0.1566, allocations: 486.3 kB / 333.5 MB, free: 4.609 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002795/0.1594, allocations: 2.716 MB / 336.2 MB, free: 1.84 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005978/0.16, allocations: 445.5 kB / 336.7 MB, free: 1.398 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006121/0.1606, allocations: 0.6132 MB / 337.3 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01503/0.1756, allocations: 15.17 MB / 352.5 MB, free: 1.227 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006299/0.1762, allocations: 435.8 kB / 352.9 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of pre-optimization done (n=96): time 2.134e-06/0.1762, allocations: 0 / 352.9 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of matching and sorting (n=99): time 0.005008/0.1812, allocations: 3.148 MB / 356 MB, free: 13.55 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.905e-05/0.1813, allocations: 64.41 kB / 356.1 MB, free: 13.48 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003035/0.1843, allocations: 2.899 MB / 359 MB, free: 10.56 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.94e-05/0.1844, allocations: 45.64 kB / 359 MB, free: 10.51 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00124/0.1856, allocations: 1.47 MB / 360.5 MB, free: 9.035 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002698/0.1859, allocations: 345.1 kB / 360.8 MB, free: 8.695 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003544/0.1862, allocations: 248 kB / 361.1 MB, free: 8.445 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.1864, allocations: 0.5199 MB / 361.6 MB, free: 7.918 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004549/0.1869, allocations: 202.2 kB / 361.8 MB, free: 7.723 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000605/0.1875, allocations: 454.1 kB / 362.3 MB, free: 7.188 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007431/0.1882, allocations: 0.7074 MB / 363 MB, free: 6.395 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1882, allocations: 4 kB / 363 MB, free: 6.391 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0015/0.1897, allocations: 1.355 MB / 364.3 MB, free: 4.984 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.1898, allocations: 15.94 kB / 364.3 MB, free: 4.969 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001636/0.1899, allocations: 112 kB / 364.4 MB, free: 4.859 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006351/0.1906, allocations: 260.6 kB / 364.7 MB, free: 4.562 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005799/0.1911, allocations: 180.3 kB / 364.9 MB, free: 4.387 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009561/0.2007, allocations: 17.58 MB / 382.4 MB, free: 1.598 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008929/0.2016, allocations: 59.95 kB / 382.5 MB, free: 1.539 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001178/0.2017, allocations: 60 kB / 382.6 MB, free: 1.48 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.0004291/0.2021, allocations: 223.7 kB / 382.8 MB, free: 1.254 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004263/0.2026, allocations: 413.6 kB / 383.2 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002896/0.2055, allocations: 1.574 MB / 384.8 MB, free: 15.22 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.2055, allocations: 8 kB / 384.8 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.619e-06/0.2055, allocations: 11.94 kB / 384.8 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.098e-06/0.2055, allocations: 7.984 kB / 384.8 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001978/0.2075, allocations: 1.521 MB / 386.3 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001564/0.2076, allocations: 116 kB / 386.4 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004569/0.2081, allocations: 111.8 kB / 386.5 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005688/0.2086, allocations: 252.6 kB / 386.8 MB, free: 13.13 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.786e-05/0.2087, allocations: 43.98 kB / 386.8 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008746/0.2175, allocations: 17.58 MB / 404.4 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2175, allocations: 0 / 404.4 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002605/0.2201, allocations: 1.599 MB / 406 MB, free: 8.605 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000708/0.2208, allocations: 455.3 kB / 406.5 MB, free: 8.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002627/0.2211, allocations: 23.92 kB / 406.5 MB, free: 8.137 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007138/0.2218, allocations: 55.95 kB / 406.5 MB, free: 8.082 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003019/0.2221, allocations: 136.8 kB / 406.7 MB, free: 7.949 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.763e-05/0.2222, allocations: 55.97 kB / 406.7 MB, free: 7.895 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002138/0.2243, allocations: 1.606 MB / 408.3 MB, free: 6.281 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2243, allocations: 0 / 408.3 MB, free: 6.281 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001619/0.2259, allocations: 0.6635 MB / 409 MB, free: 5.617 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.001247/0.2272, allocations: 0.8871 MB / 409.9 MB, free: 4.727 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002486/0.2297, allocations: 2.536 MB / 412.4 MB, free: 1.984 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2297, allocations: 0 / 412.4 MB, free: 1.984 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001793/0.2315, allocations: 2.243 MB / 414.7 MB, free: 15.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002087/0.2335, allocations: 0.6545 MB / 415.3 MB, free: 14.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005614/0.2392, allocations: 4.317 MB / 419.6 MB, free: 10.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003857/0.2395, allocations: 408.9 kB / 420 MB, free: 10.09 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009991/0.2405, allocations: 395.3 kB / 420.4 MB, free: 9.695 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003075/0.2408, allocations: 164.5 kB / 420.6 MB, free: 9.535 MB / 378.7 MB Notification: Performance of SimCode: time 9.92e-07/0.2408, allocations: 4 kB / 420.6 MB, free: 9.531 MB / 378.7 MB Notification: Performance of Templates: time 0.1594/0.4003, allocations: 39.4 MB / 460 MB, free: 94.81 MB / 378.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.07793339015916]