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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001232/0.001231, allocations: 111.4 kB / 17.29 MB, free: 6.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.283/1.283, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001008/0.001008, allocations: 52.73 kB / 300.8 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08819/0.08921, allocations: 49.45 MB / 350.2 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01279/0.102, allocations: 14.05 MB / 364.3 MB, free: 6.551 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1858/0.2879, allocations: 20.14 MB / 384.4 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001969/0.2899, allocations: 65.62 kB / 384.5 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003007/0.293, allocations: 0.9799 MB / 385.5 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007234/0.3003, allocations: 1.962 MB / 387.4 MB, free: 7.414 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005041/0.3053, allocations: 1.257 MB / 388.7 MB, free: 6.789 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009226/0.3146, allocations: 6.488 MB / 395.2 MB, free: 4.359 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006927/0.3153, allocations: 436.5 kB / 395.6 MB, free: 4.145 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001722/0.317, allocations: 1.068 MB / 396.7 MB, free: 3.695 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001258/0.3183, allocations: 1.077 MB / 397.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001903/0.3185, allocations: 75.62 kB / 397.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004393/0.3229, allocations: 1.491 MB / 399.3 MB, free: 2.547 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003441/0.3233, allocations: 333 kB / 399.6 MB, free: 2.281 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001564/0.3248, allocations: 1.323 MB / 401 MB, free: 1.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002718/0.3276, allocations: 2.736 MB / 403.7 MB, free: 15.53 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.3276, allocations: 0 / 403.7 MB, free: 15.53 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3276, allocations: 0 / 403.7 MB, free: 15.53 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.4e-05/0.3277, allocations: 0 / 403.7 MB, free: 15.53 MB / 318.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.005051/0.3327, allocations: 3.563 MB / 407.3 MB, free: 11.97 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.3328, allocations: 8.031 kB / 407.3 MB, free: 11.96 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004724/0.3332, allocations: 375.5 kB / 407.6 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003703/0.337, allocations: 2.548 MB / 410.2 MB, free: 8.961 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.094e-05/0.337, allocations: 32.94 kB / 410.2 MB, free: 8.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.3372, allocations: 52.47 kB / 410.3 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001551/0.3387, allocations: 0.7655 MB / 411 MB, free: 8.109 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.3387, allocations: 0 / 411 MB, free: 8.109 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.149e-05/0.3388, allocations: 16 kB / 411.1 MB, free: 8.094 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.338e-05/0.3389, allocations: 19.98 kB / 411.1 MB, free: 8.074 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001691/0.3405, allocations: 0.8553 MB / 411.9 MB, free: 7.215 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005259/0.3458, allocations: 2.974 MB / 414.9 MB, free: 4.164 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001711/0.3476, allocations: 0.7893 MB / 415.7 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001478/0.349, allocations: 0.9643 MB / 416.7 MB, free: 2.402 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02926/0.3783, allocations: 30.06 MB / 446.7 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001188/0.3796, allocations: 0.5958 MB / 447.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 3.226e-06/0.3796, allocations: 0 / 447.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01199/0.3916, allocations: 5.232 MB / 452.5 MB, free: 10.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.408e-05/0.3916, allocations: 64.41 kB / 452.6 MB, free: 10.08 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003016/0.3947, allocations: 2.692 MB / 455.3 MB, free: 7.371 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001005/0.3948, allocations: 45.7 kB / 455.3 MB, free: 7.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009971/0.3958, allocations: 1.303 MB / 456.6 MB, free: 6.012 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002787/0.3961, allocations: 331.2 kB / 457 MB, free: 5.684 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003519/0.3964, allocations: 230.3 kB / 457.2 MB, free: 5.453 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.3965, allocations: 349.9 kB / 457.5 MB, free: 5.105 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001216/0.3978, allocations: 478 kB / 458 MB, free: 4.633 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001292/0.3991, allocations: 0.6548 MB / 458.7 MB, free: 3.918 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002446/0.4015, allocations: 1.122 MB / 459.8 MB, free: 2.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.4015, allocations: 4 kB / 459.8 MB, free: 2.727 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003889/0.4054, allocations: 1.983 MB / 461.8 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.4055, allocations: 8 kB / 461.8 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001558/0.4056, allocations: 116 kB / 461.9 MB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006862/0.4063, allocations: 268.9 kB / 462.1 MB, free: 256 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008527/0.4072, allocations: 192.5 kB / 462.3 MB, free: 64 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008733/0.4159, allocations: 14.26 MB / 476.6 MB, free: 428 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001549/0.4175, allocations: 91.83 kB / 476.7 MB, free: 336 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001433/0.4177, allocations: 56 kB / 476.7 MB, free: 280 kB / 382.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.0008003/0.4185, allocations: 418.4 kB / 477.1 MB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004349/0.4189, allocations: 375.5 kB / 477.5 MB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004908/0.4238, allocations: 2.218 MB / 479.7 MB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.4239, allocations: 8 kB / 479.7 MB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.788e-06/0.4239, allocations: 8 kB / 479.7 MB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.4239, allocations: 3.984 kB / 479.8 MB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001947/0.4259, allocations: 1.547 MB / 481.3 MB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001452/0.426, allocations: 108 kB / 481.4 MB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007/0.4267, allocations: 139.8 kB / 481.5 MB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006411/0.4274, allocations: 268.3 kB / 481.8 MB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/0.4275, allocations: 47.92 kB / 481.8 MB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008622/0.4361, allocations: 14.25 MB / 496.1 MB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.4361, allocations: 0 / 496.1 MB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005216/0.4414, allocations: 2.547 MB / 498.6 MB, free: 8.695 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009684/0.4424, allocations: 496.5 kB / 499.1 MB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003418/0.4427, allocations: 23.98 kB / 499.2 MB, free: 8.164 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009477/0.4437, allocations: 79.89 kB / 499.2 MB, free: 8.086 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000345/0.444, allocations: 136.8 kB / 499.4 MB, free: 7.953 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.4441, allocations: 51.98 kB / 499.4 MB, free: 7.902 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002222/0.4464, allocations: 1.77 MB / 0.4894 GB, free: 6.125 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4464, allocations: 0 / 0.4894 GB, free: 6.125 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001478/0.4479, allocations: 0.6561 MB / 0.4901 GB, free: 5.469 MB / 414.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.001199/0.4491, allocations: 0.8044 MB / 0.4909 GB, free: 4.656 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004278/0.4533, allocations: 2.542 MB / 0.4933 GB, free: 1.961 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.4534, allocations: 0 / 0.4933 GB, free: 1.961 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002446/0.4558, allocations: 1.964 MB / 0.4953 GB, free: 15.84 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002614/0.4585, allocations: 0.6362 MB / 0.4959 GB, free: 15.2 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006911/0.4654, allocations: 5.561 MB / 0.5013 GB, free: 9.598 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/0.4664, allocations: 1.654 MB / 0.5029 GB, free: 7.918 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004192/0.4669, allocations: 175.4 kB / 0.5031 GB, free: 7.746 MB / 430.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4669, allocations: 0 / 0.5031 GB, free: 7.746 MB / 430.1 MB Notification: Performance of Templates: time 0.2395/0.7064, allocations: 153.9 MB / 0.6534 GB, free: 36.41 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches