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.001157/0.001157, allocations: 108.8 kB / 17.06 MB, free: 6.129 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.001128/0.001128, allocations: 191 kB / 18 MB, free: 5.207 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.317/1.317, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009891/0.0009891, allocations: 51.92 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2281/0.2291, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01286/0.242, allocations: 14.19 MB / 414.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02331/0.2654, allocations: 20.3 MB / 435.2 MB, free: 6.254 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001991/0.2674, allocations: 122.9 kB / 435.3 MB, free: 6.133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002721/0.2701, allocations: 1.125 MB / 436.5 MB, free: 5.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007241/0.2774, allocations: 2.309 MB / 438.8 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004078/0.2815, allocations: 1.443 MB / 440.2 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009021/0.2905, allocations: 6.426 MB / 446.6 MB, free: 10.79 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006626/0.2912, allocations: 428.5 kB / 447 MB, free: 10.33 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001383/0.2926, allocations: 1.1 MB / 448.1 MB, free: 9.227 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001037/0.2937, allocations: 1.079 MB / 449.2 MB, free: 8.141 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001511/0.2938, allocations: 76 kB / 449.3 MB, free: 8.066 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003616/0.2975, allocations: 1.471 MB / 450.8 MB, free: 6.594 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003136/0.2978, allocations: 325.7 kB / 451.1 MB, free: 6.273 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001212/0.299, allocations: 1.327 MB / 452.4 MB, free: 4.938 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004367/0.3034, allocations: 3.678 MB / 456.1 MB, free: 1.246 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3034, allocations: 3.938 kB / 456.1 MB, free: 1.242 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.04e-05/0.3034, allocations: 7.984 kB / 456.1 MB, free: 1.234 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.954e-05/0.3035, allocations: 0 / 456.1 MB, free: 1.234 MB / 366.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.00482/0.3083, allocations: 3.557 MB / 459.7 MB, free: 13.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.3084, allocations: 8.031 kB / 459.7 MB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000385/0.3088, allocations: 371.5 kB / 460 MB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003435/0.3122, allocations: 2.528 MB / 462.6 MB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.554e-05/0.3122, allocations: 37 kB / 462.6 MB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.3124, allocations: 51.91 kB / 462.7 MB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00152/0.3139, allocations: 0.7538 MB / 463.4 MB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.3139, allocations: 0 / 463.4 MB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.719e-05/0.314, allocations: 23.98 kB / 463.4 MB, free: 9.746 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.359e-05/0.3141, allocations: 16 kB / 463.4 MB, free: 9.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001789/0.3159, allocations: 0.8592 MB / 464.3 MB, free: 8.871 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004695/0.3206, allocations: 2.962 MB / 467.3 MB, free: 5.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001765/0.3223, allocations: 0.7871 MB / 468.1 MB, free: 5.047 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001488/0.3238, allocations: 0.9566 MB / 469 MB, free: 4.086 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0285/0.3524, allocations: 30.07 MB / 499.1 MB, free: 1.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001214/0.3536, allocations: 0.5996 MB / 499.7 MB, free: 1.301 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.006e-06/0.3536, allocations: 0 / 499.7 MB, free: 1.301 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01238/0.366, allocations: 5.225 MB / 0.4931 GB, free: 11.82 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.217e-05/0.3661, allocations: 68.41 kB / 0.4931 GB, free: 11.74 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003258/0.3694, allocations: 2.692 MB / 0.4958 GB, free: 9.035 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.838e-05/0.3695, allocations: 41.7 kB / 0.4958 GB, free: 8.988 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001103/0.3706, allocations: 1.303 MB / 0.4971 GB, free: 7.68 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003015/0.3709, allocations: 339.1 kB / 0.4974 GB, free: 7.344 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003687/0.3713, allocations: 234.3 kB / 0.4976 GB, free: 7.105 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.3714, allocations: 349.9 kB / 0.498 GB, free: 6.758 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001312/0.3728, allocations: 481.9 kB / 0.4984 GB, free: 6.285 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001393/0.3742, allocations: 0.6431 MB / 0.499 GB, free: 5.582 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002708/0.3769, allocations: 1.129 MB / 0.5001 GB, free: 4.391 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.3769, allocations: 0 / 0.5001 GB, free: 4.391 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004154/0.3811, allocations: 1.979 MB / 0.5021 GB, free: 2.332 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.741e-05/0.3811, allocations: 18.53 kB / 0.5021 GB, free: 2.316 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001698/0.3813, allocations: 116 kB / 0.5022 GB, free: 2.203 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007003/0.382, allocations: 276.9 kB / 0.5025 GB, free: 1.902 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009236/0.3829, allocations: 195.7 kB / 0.5027 GB, free: 1.711 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00915/0.3921, allocations: 14.24 MB / 0.5166 GB, free: 2.074 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001411/0.3935, allocations: 87.89 kB / 0.5166 GB, free: 1.988 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.3936, allocations: 56 kB / 0.5167 GB, free: 1.934 MB / 446.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.0008082/0.3945, allocations: 433.6 kB / 0.5171 GB, free: 1.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003549/0.3948, allocations: 367.6 kB / 0.5175 GB, free: 1.137 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004788/0.3996, allocations: 2.211 MB / 0.5196 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.237e-05/0.3996, allocations: 8 kB / 0.5196 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.3997, allocations: 4 kB / 0.5196 GB, free: 14.83 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.3997, allocations: 3.984 kB / 0.5196 GB, free: 14.83 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001772/0.4015, allocations: 1.55 MB / 0.5212 GB, free: 13.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001619/0.4016, allocations: 116 kB / 0.5213 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007707/0.4024, allocations: 131.8 kB / 0.5214 GB, free: 12.98 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006279/0.403, allocations: 268.3 kB / 0.5216 GB, free: 12.69 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.654e-05/0.4031, allocations: 39.98 kB / 0.5217 GB, free: 12.65 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1963/0.5994, allocations: 14.24 MB / 0.5356 GB, free: 133.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.5995, allocations: 0.5 kB / 0.5356 GB, free: 133.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006598/0.6061, allocations: 2.544 MB / 0.5381 GB, free: 132.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001018/0.6071, allocations: 498 kB / 0.5385 GB, free: 132.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003075/0.6075, allocations: 21.38 kB / 0.5386 GB, free: 132.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009527/0.6084, allocations: 84.25 kB / 0.5386 GB, free: 132.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003594/0.6088, allocations: 135.2 kB / 0.5388 GB, free: 132.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.23e-05/0.6089, allocations: 52.08 kB / 0.5388 GB, free: 132.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002075/0.611, allocations: 1.772 MB / 0.5406 GB, free: 132.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.611, allocations: 0 / 0.5406 GB, free: 132.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001358/0.6123, allocations: 0.6531 MB / 0.5412 GB, free: 132.4 MB / 462.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.001119/0.6135, allocations: 0.8201 MB / 0.542 GB, free: 132.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00364/0.6171, allocations: 2.51 MB / 0.5444 GB, free: 130.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.6171, allocations: 0 / 0.5444 GB, free: 130.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0021/0.6192, allocations: 1.953 MB / 0.5464 GB, free: 129.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002338/0.6216, allocations: 0.6074 MB / 0.5469 GB, free: 129 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005537/0.6271, allocations: 4.672 MB / 0.5515 GB, free: 126.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007941/0.628, allocations: 1.662 MB / 0.5531 GB, free: 124.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001089/0.6291, allocations: 392.5 kB / 0.5535 GB, free: 124.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002577/0.6293, allocations: 163.4 kB / 0.5537 GB, free: 124.1 MB / 462.1 MB Notification: Performance of SimCode: time 8.31e-07/0.6293, allocations: 0 / 0.5537 GB, free: 124.1 MB / 462.1 MB Notification: Performance of Templates: time 0.0477/0.677, allocations: 37.1 MB / 0.5899 GB, free: 87.37 MB / 462.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/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) Reference file matches