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.00185/0.00185, allocations: 79.73 kB / 21.25 MB, free: 392 kB / 14.72 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.002188/0.002188, allocations: 163.1 kB / 24.5 MB, free: 3.449 MB / 14.72 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.402/1.402, allocations: 177.1 MB / 204.7 MB, free: 8.996 MB / 190.1 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 0.001962/0.001962, allocations: 62.28 kB / 325.5 MB, free: 208 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08955/0.09151, allocations: 53.39 MB / 378.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01273/0.1042, allocations: 11.98 MB / 390.9 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02241/0.1266, allocations: 17.58 MB / 408.5 MB, free: 1.824 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001889/0.1285, allocations: 189.9 kB / 408.6 MB, free: 1.637 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002644/0.1312, allocations: 1.04 MB / 409.7 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006371/0.1376, allocations: 2.321 MB / 412 MB, free: 14.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003915/0.1415, allocations: 1.414 MB / 413.4 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009875/0.1513, allocations: 6.552 MB / 420 MB, free: 6.258 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005055/0.1518, allocations: 256.9 kB / 420.2 MB, free: 5.973 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00157/0.1534, allocations: 1.14 MB / 421.4 MB, free: 4.828 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001383/0.1548, allocations: 1.04 MB / 422.4 MB, free: 3.781 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001915/0.155, allocations: 72 kB / 422.5 MB, free: 3.711 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003118/0.1581, allocations: 1.206 MB / 423.7 MB, free: 2.504 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003348/0.1584, allocations: 325.7 kB / 424 MB, free: 2.184 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001057/0.1595, allocations: 0.978 MB / 425 MB, free: 1.199 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004402/0.1639, allocations: 3.737 MB / 428.7 MB, free: 13.45 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1639, allocations: 0 / 428.7 MB, free: 13.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1639, allocations: 0 / 428.7 MB, free: 13.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.224e-05/0.1639, allocations: 4 kB / 428.7 MB, free: 13.44 MB / 398.1 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.005243/0.1692, allocations: 3.613 MB / 432.3 MB, free: 9.773 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.1692, allocations: 11.98 kB / 432.3 MB, free: 9.762 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004294/0.1697, allocations: 393.5 kB / 432.7 MB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003615/0.1733, allocations: 2.378 MB / 435.1 MB, free: 6.898 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.295e-05/0.1733, allocations: 37 kB / 435.1 MB, free: 6.859 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.1734, allocations: 51.98 kB / 435.2 MB, free: 6.809 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00147/0.1749, allocations: 0.7538 MB / 435.9 MB, free: 6.051 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.1749, allocations: 0 / 435.9 MB, free: 6.051 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.766e-05/0.175, allocations: 24 kB / 436 MB, free: 6.027 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.27e-05/0.175, allocations: 19.98 kB / 436 MB, free: 6.008 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001827/0.1768, allocations: 0.8592 MB / 436.9 MB, free: 5.148 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004643/0.1815, allocations: 2.674 MB / 439.5 MB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001712/0.1832, allocations: 0.7247 MB / 440.2 MB, free: 1.699 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00149/0.1847, allocations: 0.8602 MB / 441.1 MB, free: 0.832 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02519/0.2099, allocations: 13.67 MB / 454.8 MB, free: 2.773 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001213/0.2111, allocations: 0.6035 MB / 455.4 MB, free: 2.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.716e-06/0.2111, allocations: 7.938 kB / 455.4 MB, free: 2.152 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01191/0.223, allocations: 4.521 MB / 459.9 MB, free: 13.56 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.23e-05/0.223, allocations: 64.41 kB / 460 MB, free: 13.48 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003136/0.2262, allocations: 2.7 MB / 462.7 MB, free: 10.77 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.659e-05/0.2263, allocations: 45.64 kB / 462.7 MB, free: 10.71 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001334/0.2276, allocations: 1.308 MB / 464 MB, free: 9.402 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003005/0.2279, allocations: 356.9 kB / 464.4 MB, free: 9.055 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003679/0.2283, allocations: 234.4 kB / 464.6 MB, free: 8.82 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.2284, allocations: 341.9 kB / 464.9 MB, free: 8.48 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001269/0.2297, allocations: 482 kB / 465.4 MB, free: 8.012 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001403/0.2311, allocations: 0.647 MB / 466.1 MB, free: 7.301 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002719/0.2338, allocations: 1.126 MB / 467.2 MB, free: 6.113 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.2338, allocations: 7.938 kB / 467.2 MB, free: 6.105 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004216/0.238, allocations: 1.831 MB / 469 MB, free: 4.234 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.2381, allocations: 14.95 kB / 469 MB, free: 4.223 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001756/0.2382, allocations: 119.9 kB / 469.2 MB, free: 4.105 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007015/0.2389, allocations: 268.6 kB / 469.4 MB, free: 3.812 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009142/0.2399, allocations: 203.6 kB / 469.6 MB, free: 3.613 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1822/0.422, allocations: 12.96 MB / 482.6 MB, free: 77.83 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/0.4234, allocations: 91.83 kB / 482.7 MB, free: 77.83 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.4236, allocations: 56.73 kB / 482.7 MB, free: 77.83 MB / 430.1 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.0007135/0.4243, allocations: 429.3 kB / 483.1 MB, free: 77.7 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003313/0.4246, allocations: 390.5 kB / 483.5 MB, free: 77.7 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004462/0.4291, allocations: 2.066 MB / 485.6 MB, free: 77.48 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.4291, allocations: 9 kB / 485.6 MB, free: 77.48 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.4291, allocations: 4.969 kB / 485.6 MB, free: 77.48 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.4291, allocations: 3.891 kB / 485.6 MB, free: 77.48 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001646/0.4307, allocations: 1.296 MB / 486.9 MB, free: 76.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001537/0.4309, allocations: 111.4 kB / 487 MB, free: 76.89 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007108/0.4316, allocations: 143.4 kB / 487.1 MB, free: 76.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005801/0.4322, allocations: 264.7 kB / 487.4 MB, free: 76.75 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.607e-05/0.4323, allocations: 43.58 kB / 487.5 MB, free: 76.74 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005977/0.4382, allocations: 12.97 MB / 0.4887 GB, free: 64.13 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.4382, allocations: 0 / 0.4887 GB, free: 64.13 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005132/0.4434, allocations: 2.408 MB / 0.491 GB, free: 63.28 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009225/0.4443, allocations: 437.2 kB / 0.4915 GB, free: 63.02 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002515/0.4446, allocations: 20.66 kB / 0.4915 GB, free: 63.01 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009366/0.4455, allocations: 81.86 kB / 0.4916 GB, free: 63 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003163/0.4458, allocations: 145 kB / 0.4917 GB, free: 62.97 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/0.4459, allocations: 47.77 kB / 0.4917 GB, free: 62.96 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002301/0.4482, allocations: 1.77 MB / 0.4935 GB, free: 62.32 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4482, allocations: 0 / 0.4935 GB, free: 62.32 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001561/0.4498, allocations: 0.6582 MB / 0.4941 GB, free: 62.28 MB / 430.1 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.001016/0.4508, allocations: 0.8263 MB / 0.4949 GB, free: 62.12 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003489/0.4543, allocations: 2.449 MB / 0.4973 GB, free: 60.52 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.4543, allocations: 0 / 0.4973 GB, free: 60.52 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001949/0.4562, allocations: 1.907 MB / 0.4992 GB, free: 59.06 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002015/0.4582, allocations: 0.6179 MB / 0.4998 GB, free: 58.79 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004662/0.4629, allocations: 4.748 MB / 0.5044 GB, free: 54.36 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006677/0.4636, allocations: 1.1 MB / 0.5055 GB, free: 53.22 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008377/0.4644, allocations: 395.3 kB / 0.5059 GB, free: 52.83 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002353/0.4646, allocations: 176.4 kB / 0.506 GB, free: 52.66 MB / 430.1 MB Notification: Performance of SimCode: time 8.01e-07/0.4646, allocations: 0 / 0.506 GB, free: 52.66 MB / 430.1 MB Notification: Performance of Templates: time 0.05049/0.5151, allocations: 39.08 MB / 0.5442 GB, free: 14.04 MB / 430.1 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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/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.012907088035718]