Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001927/0.001927, allocations: 113.4 kB / 21.93 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002365/0.002365, allocations: 213.5 kB / 25.22 MB, free: 3.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.445/1.445, allocations: 207.7 MB / 236.1 MB, free: 9.809 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003025/0.003025, allocations: 63.88 kB / 348.4 MB, free: 9.395 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.282, allocations: 49.16 MB / 397.6 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01125/0.2932, allocations: 11.41 MB / 409 MB, free: 1.703 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02749/0.3207, allocations: 16.74 MB / 425.7 MB, free: 5.238 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003608/0.3243, allocations: 201.2 kB / 425.9 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003854/0.3282, allocations: 1.001 MB / 426.9 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01048/0.3387, allocations: 2.29 MB / 429.2 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005421/0.3441, allocations: 1.365 MB / 430.6 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01126/0.3553, allocations: 6.321 MB / 436.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007242/0.3561, allocations: 245.1 kB / 437.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001896/0.358, allocations: 1.046 MB / 438.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001535/0.3595, allocations: 1.013 MB / 439.2 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002518/0.3597, allocations: 76 kB / 439.3 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004081/0.3638, allocations: 1.085 MB / 440.4 MB, free: 8.277 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000441/0.3643, allocations: 321.7 kB / 440.7 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001524/0.3658, allocations: 0.9857 MB / 441.7 MB, free: 6.969 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006598/0.3724, allocations: 3.768 MB / 445.4 MB, free: 3.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.3724, allocations: 0 / 445.4 MB, free: 3.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3724, allocations: 0 / 445.4 MB, free: 3.184 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.018e-05/0.3725, allocations: 4 kB / 445.4 MB, free: 3.18 MB / 350.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.006047/0.3785, allocations: 3.637 MB / 449.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.3786, allocations: 11.98 kB / 449.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005032/0.3791, allocations: 401.5 kB / 449.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004243/0.3833, allocations: 2.394 MB / 451.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.658e-05/0.3833, allocations: 44.92 kB / 451.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001503/0.3835, allocations: 48 kB / 452 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.3851, allocations: 0.7616 MB / 452.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/0.3851, allocations: 0 / 452.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.85e-05/0.3852, allocations: 16 kB / 452.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.42e-05/0.3852, allocations: 23.98 kB / 452.8 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001917/0.3871, allocations: 0.8631 MB / 453.6 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005313/0.3925, allocations: 2.682 MB / 456.3 MB, free: 8.098 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001803/0.3943, allocations: 0.7246 MB / 457 MB, free: 7.367 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001528/0.3958, allocations: 0.8598 MB / 457.9 MB, free: 6.504 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02833/0.4241, allocations: 13.7 MB / 471.6 MB, free: 8.422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001294/0.4254, allocations: 0.5957 MB / 472.2 MB, free: 7.816 MB / 382.1 MB Notification: Performance of pre-optimization done (n=96): time 3.095e-06/0.4254, allocations: 0 / 472.2 MB, free: 7.816 MB / 382.1 MB Notification: Performance of matching and sorting (n=99): time 0.01269/0.4381, allocations: 4.532 MB / 476.7 MB, free: 3.223 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.114e-05/0.4382, allocations: 64.41 kB / 476.8 MB, free: 3.148 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003882/0.4421, allocations: 2.721 MB / 479.5 MB, free: 424 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001565/0.4422, allocations: 41.7 kB / 479.5 MB, free: 376 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001337/0.4436, allocations: 1.312 MB / 480.9 MB, free: 15.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004135/0.444, allocations: 345.1 kB / 481.2 MB, free: 14.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000379/0.4444, allocations: 238.4 kB / 481.4 MB, free: 14.47 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.4445, allocations: 345.9 kB / 481.8 MB, free: 14.13 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001326/0.4459, allocations: 478 kB / 482.2 MB, free: 13.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001474/0.4473, allocations: 0.647 MB / 482.9 MB, free: 12.95 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002775/0.4501, allocations: 1.137 MB / 484 MB, free: 11.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.4501, allocations: 0 / 484 MB, free: 11.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004364/0.4545, allocations: 1.835 MB / 485.9 MB, free: 9.871 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.4545, allocations: 8 kB / 485.9 MB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001819/0.4547, allocations: 116 kB / 486 MB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007529/0.4554, allocations: 272.8 kB / 486.2 MB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009263/0.4564, allocations: 199.6 kB / 486.4 MB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/0.4673, allocations: 12.97 MB / 499.4 MB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00149/0.4688, allocations: 91.89 kB / 499.5 MB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001507/0.4689, allocations: 60 kB / 499.6 MB, free: 11.11 MB / 414.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.0008892/0.4698, allocations: 422.3 kB / 500 MB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005568/0.4704, allocations: 393.5 kB / 0.4886 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005195/0.4756, allocations: 2.077 MB / 0.4907 GB, free: 8.184 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.474e-05/0.4756, allocations: 8 kB / 0.4907 GB, free: 8.176 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/0.4756, allocations: 4 kB / 0.4907 GB, free: 8.172 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.4756, allocations: 3.984 kB / 0.4907 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002358/0.478, allocations: 1.317 MB / 0.492 GB, free: 6.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001693/0.4781, allocations: 116 kB / 0.4921 GB, free: 6.707 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007433/0.4789, allocations: 135.7 kB / 0.4922 GB, free: 6.574 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006847/0.4796, allocations: 268.3 kB / 0.4925 GB, free: 6.281 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/0.4797, allocations: 39.98 kB / 0.4925 GB, free: 6.242 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0108/0.4905, allocations: 12.97 MB / 0.5052 GB, free: 8.246 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.4905, allocations: 0 / 0.5052 GB, free: 8.246 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005965/0.4965, allocations: 2.422 MB / 0.5075 GB, free: 5.773 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001225/0.4977, allocations: 439.3 kB / 0.5079 GB, free: 5.34 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003333/0.498, allocations: 20 kB / 0.508 GB, free: 5.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.499, allocations: 75.89 kB / 0.508 GB, free: 5.246 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003739/0.4994, allocations: 148.7 kB / 0.5082 GB, free: 5.102 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001098/0.4995, allocations: 59.97 kB / 0.5082 GB, free: 5.043 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002642/0.5022, allocations: 1.778 MB / 0.51 GB, free: 3.258 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5022, allocations: 0 / 0.51 GB, free: 3.258 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00176/0.5039, allocations: 0.6596 MB / 0.5106 GB, free: 2.598 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.00138/0.5053, allocations: 0.8076 MB / 0.5114 GB, free: 1.785 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004606/0.5099, allocations: 2.444 MB / 0.5138 GB, free: 15.18 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.5099, allocations: 0 / 0.5138 GB, free: 15.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002873/0.5128, allocations: 1.905 MB / 0.5156 GB, free: 13.12 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002054/0.5148, allocations: 0.5286 MB / 0.5162 GB, free: 12.59 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00766/0.5225, allocations: 4.838 MB / 0.5209 GB, free: 7.699 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001171/0.5237, allocations: 1.124 MB / 0.522 GB, free: 6.539 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004656/0.5241, allocations: 171.4 kB / 0.5222 GB, free: 6.371 MB / 446.1 MB Notification: Performance of SimCode: time 1.423e-06/0.5241, allocations: 0 / 0.5222 GB, free: 6.371 MB / 446.1 MB Notification: Performance of Templates: time 0.3013/0.8255, allocations: 156.8 MB / 0.6753 GB, free: 46.61 MB / 478.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 15.031894341111183]