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.001877/0.001877, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 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.002247/0.002247, allocations: 194.6 kB / 23.71 MB, free: 4.406 MB / 14.72 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.548/1.548, allocations: 225.7 MB / 252.5 MB, free: 12.79 MB / 206.1 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 0.001691/0.001691, allocations: 47.92 kB / 370.9 MB, free: 9.262 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2346, allocations: 52.19 MB / 423.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.015/0.2496, allocations: 11.97 MB / 435 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02461/0.2742, allocations: 17.53 MB / 452.6 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002408/0.2766, allocations: 193.8 kB / 452.8 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003354/0.2799, allocations: 1.029 MB / 453.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007044/0.287, allocations: 2.331 MB / 456.1 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004135/0.2911, allocations: 1.414 MB / 457.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009817/0.3009, allocations: 6.45 MB / 464 MB, free: 5.379 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005343/0.3015, allocations: 245 kB / 464.2 MB, free: 5.105 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001653/0.3031, allocations: 1.143 MB / 465.4 MB, free: 3.957 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001365/0.3045, allocations: 1.032 MB / 466.4 MB, free: 2.918 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002066/0.3047, allocations: 76 kB / 466.5 MB, free: 2.844 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0034/0.3081, allocations: 1.206 MB / 467.7 MB, free: 1.637 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003525/0.3085, allocations: 325.7 kB / 468 MB, free: 1.316 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001128/0.3096, allocations: 0.9818 MB / 469 MB, free: 336 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004912/0.3145, allocations: 3.737 MB / 472.7 MB, free: 12.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3145, allocations: 0 / 472.7 MB, free: 12.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3145, allocations: 0 / 472.7 MB, free: 12.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.891e-05/0.3145, allocations: 0 / 472.7 MB, free: 12.57 MB / 382.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.00585/0.3204, allocations: 3.61 MB / 476.3 MB, free: 8.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.3204, allocations: 8.031 kB / 476.3 MB, free: 8.902 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004434/0.3209, allocations: 397.5 kB / 476.7 MB, free: 8.512 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004027/0.3249, allocations: 2.374 MB / 479.1 MB, free: 6.039 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.335e-05/0.3249, allocations: 41 kB / 479.1 MB, free: 5.996 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001391/0.3251, allocations: 55.94 kB / 479.2 MB, free: 5.941 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/0.3266, allocations: 0.7576 MB / 479.9 MB, free: 5.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.3267, allocations: 4 kB / 479.9 MB, free: 5.176 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.412e-05/0.3267, allocations: 20 kB / 480 MB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.16e-05/0.3268, allocations: 23.98 kB / 480 MB, free: 5.133 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00192/0.3287, allocations: 0.8514 MB / 480.8 MB, free: 4.281 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005312/0.334, allocations: 2.678 MB / 483.5 MB, free: 1.555 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001835/0.3358, allocations: 0.7208 MB / 484.2 MB, free: 0.8281 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001606/0.3374, allocations: 0.8677 MB / 485.1 MB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02879/0.3662, allocations: 13.64 MB / 498.7 MB, free: 1.934 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001265/0.3675, allocations: 0.5919 MB / 499.3 MB, free: 1.332 MB / 398.1 MB Notification: Performance of pre-optimization done (n=96): time 3.306e-06/0.3675, allocations: 0 / 499.3 MB, free: 1.332 MB / 398.1 MB Notification: Performance of matching and sorting (n=99): time 0.01272/0.3802, allocations: 4.532 MB / 0.4921 GB, free: 12.73 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.821e-05/0.3803, allocations: 72.39 kB / 0.4921 GB, free: 12.65 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003833/0.3841, allocations: 2.696 MB / 0.4948 GB, free: 9.938 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.374e-05/0.3842, allocations: 41.7 kB / 0.4948 GB, free: 9.891 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001321/0.3855, allocations: 1.304 MB / 0.4961 GB, free: 8.582 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000325/0.3859, allocations: 352.9 kB / 0.4964 GB, free: 8.234 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003645/0.3862, allocations: 242.4 kB / 0.4966 GB, free: 7.992 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.3864, allocations: 345.9 kB / 0.497 GB, free: 7.648 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00139/0.3878, allocations: 478 kB / 0.4974 GB, free: 7.184 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001451/0.3892, allocations: 0.647 MB / 0.4981 GB, free: 6.469 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002708/0.3919, allocations: 1.122 MB / 0.4992 GB, free: 5.285 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3919, allocations: 0 / 0.4992 GB, free: 5.285 MB / 414.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004249/0.3962, allocations: 1.843 MB / 0.501 GB, free: 3.402 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.3962, allocations: 6.812 kB / 0.501 GB, free: 3.398 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001904/0.3964, allocations: 123.9 kB / 0.5011 GB, free: 3.277 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007392/0.3971, allocations: 264.4 kB / 0.5013 GB, free: 2.988 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009086/0.398, allocations: 195.7 kB / 0.5015 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/0.4085, allocations: 12.98 MB / 0.5142 GB, free: 4.797 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/0.41, allocations: 92.02 kB / 0.5143 GB, free: 4.707 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001272/0.4101, allocations: 60 kB / 0.5143 GB, free: 4.648 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.0008203/0.4109, allocations: 423.7 kB / 0.5147 GB, free: 4.227 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004474/0.4114, allocations: 385.6 kB / 0.5151 GB, free: 3.848 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005013/0.4164, allocations: 2.064 MB / 0.5171 GB, free: 1.742 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.288e-05/0.4164, allocations: 8 kB / 0.5171 GB, free: 1.734 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.4164, allocations: 8 kB / 0.5171 GB, free: 1.727 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.4164, allocations: 3.984 kB / 0.5171 GB, free: 1.723 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001789/0.4182, allocations: 1.297 MB / 0.5184 GB, free: 404 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001743/0.4184, allocations: 119.9 kB / 0.5185 GB, free: 284 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000744/0.4191, allocations: 135.8 kB / 0.5187 GB, free: 148 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006726/0.4198, allocations: 260.3 kB / 0.5189 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.92e-05/0.4199, allocations: 47.98 kB / 0.519 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01044/0.4303, allocations: 12.98 MB / 0.5316 GB, free: 1.805 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4303, allocations: 0 / 0.5316 GB, free: 1.805 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1941/0.6244, allocations: 2.402 MB / 0.534 GB, free: 110 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001327/0.6257, allocations: 435.2 kB / 0.5344 GB, free: 110 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003292/0.626, allocations: 18.62 kB / 0.5344 GB, free: 110 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.6271, allocations: 83.58 kB / 0.5345 GB, free: 110 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003907/0.6275, allocations: 148.8 kB / 0.5346 GB, free: 110 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/0.6276, allocations: 51.78 kB / 0.5347 GB, free: 110 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002297/0.6299, allocations: 1.769 MB / 0.5364 GB, free: 109.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6299, allocations: 0 / 0.5364 GB, free: 109.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001501/0.6314, allocations: 0.6531 MB / 0.537 GB, free: 109.8 MB / 446.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.6324, allocations: 0.8172 MB / 0.5378 GB, free: 109.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003483/0.6359, allocations: 2.444 MB / 0.5402 GB, free: 108.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.6359, allocations: 0 / 0.5402 GB, free: 108.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002037/0.6379, allocations: 1.914 MB / 0.5421 GB, free: 107 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002279/0.6402, allocations: 0.6138 MB / 0.5427 GB, free: 106.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005249/0.6455, allocations: 4.759 MB / 0.5473 GB, free: 103.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007091/0.6462, allocations: 1.115 MB / 0.5484 GB, free: 103.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001033/0.6472, allocations: 384.8 kB / 0.5488 GB, free: 102.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002515/0.6475, allocations: 171 kB / 0.549 GB, free: 102.6 MB / 446.1 MB Notification: Performance of SimCode: time 9.21e-07/0.6475, allocations: 3.938 kB / 0.549 GB, free: 102.6 MB / 446.1 MB Notification: Performance of Templates: time 0.05308/0.7005, allocations: 42.85 MB / 0.5908 GB, free: 60.76 MB / 446.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] 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.3999162800610065]