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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001283/0.001283, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001091/0.001091, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 57.91 kB / 306.9 MB, free: 0.6328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08615/0.08729, allocations: 50.54 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1635/0.2508, allocations: 14.18 MB / 371.7 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02157/0.2724, allocations: 20.34 MB / 392 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001812/0.2743, allocations: 66.28 kB / 392.1 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002747/0.277, allocations: 1.128 MB / 393.2 MB, free: 244 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007201/0.2843, allocations: 2.281 MB / 395.5 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004415/0.2887, allocations: 1.449 MB / 396.9 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009288/0.298, allocations: 6.469 MB / 403.4 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006671/0.2987, allocations: 433.4 kB / 403.8 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001479/0.3002, allocations: 1.049 MB / 404.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001036/0.3012, allocations: 1.08 MB / 405.9 MB, free: 9.824 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001676/0.3014, allocations: 75.59 kB / 406 MB, free: 9.824 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004303/0.3057, allocations: 1.483 MB / 407.5 MB, free: 9.199 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000282/0.306, allocations: 331.2 kB / 407.8 MB, free: 8.934 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001158/0.3072, allocations: 1.322 MB / 409.1 MB, free: 7.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003902/0.3111, allocations: 3.658 MB / 412.8 MB, free: 4.078 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3111, allocations: 0 / 412.8 MB, free: 4.078 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3111, allocations: 0 / 412.8 MB, free: 4.078 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.87e-05/0.3112, allocations: 0 / 412.8 MB, free: 4.078 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.004545/0.3157, allocations: 3.565 MB / 416.4 MB, free: 452 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.3158, allocations: 8.031 kB / 416.4 MB, free: 444 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003987/0.3162, allocations: 383.4 kB / 416.7 MB, free: 56 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003499/0.3197, allocations: 2.548 MB / 419.3 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.677e-05/0.3197, allocations: 37 kB / 419.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001278/0.3199, allocations: 52 kB / 419.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.3213, allocations: 0.7499 MB / 420.1 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.3213, allocations: 0 / 420.1 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.986e-05/0.3214, allocations: 23.98 kB / 420.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.7e-05/0.3214, allocations: 16 kB / 420.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001732/0.3231, allocations: 0.8592 MB / 421 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004416/0.3275, allocations: 2.97 MB / 424 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001644/0.3292, allocations: 0.7959 MB / 424.8 MB, free: 7.828 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001447/0.3307, allocations: 0.9488 MB / 425.7 MB, free: 6.879 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02821/0.3589, allocations: 30.69 MB / 456.4 MB, free: 3.938 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001147/0.3601, allocations: 0.5918 MB / 457 MB, free: 3.336 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 2.645e-06/0.3601, allocations: 0 / 457 MB, free: 3.336 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01199/0.3721, allocations: 5.223 MB / 462.3 MB, free: 13.86 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.957e-05/0.3721, allocations: 68.41 kB / 462.3 MB, free: 13.78 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003012/0.3752, allocations: 2.696 MB / 465 MB, free: 11.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.545e-05/0.3753, allocations: 45.7 kB / 465.1 MB, free: 11.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001065/0.3763, allocations: 1.307 MB / 466.4 MB, free: 9.703 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002589/0.3766, allocations: 335.2 kB / 466.7 MB, free: 9.371 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003498/0.3769, allocations: 238.2 kB / 466.9 MB, free: 9.133 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.3771, allocations: 341.9 kB / 467.3 MB, free: 8.793 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/0.3784, allocations: 477.9 kB / 467.7 MB, free: 8.324 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001451/0.3798, allocations: 0.647 MB / 468.4 MB, free: 7.617 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00268/0.3825, allocations: 1.137 MB / 469.5 MB, free: 6.418 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.3825, allocations: 0 / 469.5 MB, free: 6.418 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003918/0.3865, allocations: 1.972 MB / 471.5 MB, free: 4.363 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.3865, allocations: 16 kB / 471.5 MB, free: 4.348 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000158/0.3867, allocations: 120 kB / 471.6 MB, free: 4.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006927/0.3874, allocations: 272.3 kB / 471.9 MB, free: 3.934 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008778/0.3882, allocations: 200.3 kB / 472.1 MB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009438/0.3977, allocations: 14.24 MB / 486.3 MB, free: 4.113 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/0.3993, allocations: 87.97 kB / 486.4 MB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001255/0.3995, allocations: 56 kB / 486.5 MB, free: 3.973 MB / 398.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.0007861/0.4002, allocations: 429.6 kB / 486.9 MB, free: 3.543 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003535/0.4006, allocations: 367.5 kB / 487.2 MB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005046/0.4057, allocations: 2.218 MB / 489.5 MB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.4057, allocations: 8 kB / 489.5 MB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.4057, allocations: 8 kB / 489.5 MB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.4057, allocations: 3.984 kB / 489.5 MB, free: 0.8594 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001688/0.4074, allocations: 1.547 MB / 491 MB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001514/0.4076, allocations: 116 kB / 491.1 MB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007033/0.4083, allocations: 135.8 kB / 491.3 MB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000599/0.4089, allocations: 260.3 kB / 491.5 MB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.292e-05/0.409, allocations: 55.91 kB / 491.6 MB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009186/0.4182, allocations: 14.24 MB / 0.494 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4182, allocations: 0 / 0.494 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005271/0.4235, allocations: 2.548 MB / 0.4964 GB, free: 12.4 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007608/0.4243, allocations: 492.5 kB / 0.4969 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002995/0.4246, allocations: 16 kB / 0.4969 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009714/0.4255, allocations: 87.88 kB / 0.497 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003064/0.4259, allocations: 132.8 kB / 0.4971 GB, free: 11.66 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.426, allocations: 47.98 kB / 0.4972 GB, free: 11.62 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002185/0.4282, allocations: 1.774 MB / 0.4989 GB, free: 9.836 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4282, allocations: 0 / 0.4989 GB, free: 9.836 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001422/0.4296, allocations: 0.6522 MB / 0.4996 GB, free: 9.184 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.001119/0.4307, allocations: 0.8178 MB / 0.5004 GB, free: 8.359 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004379/0.4351, allocations: 2.553 MB / 0.5028 GB, free: 5.648 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4351, allocations: 192 / 0.5028 GB, free: 5.648 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002492/0.4376, allocations: 1.952 MB / 0.5048 GB, free: 3.543 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002396/0.44, allocations: 0.6263 MB / 0.5054 GB, free: 2.91 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006069/0.4461, allocations: 4.739 MB / 0.51 GB, free: 14.14 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001062/0.4472, allocations: 1.654 MB / 0.5116 GB, free: 12.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001332/0.4485, allocations: 399.3 kB / 0.512 GB, free: 12.06 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002858/0.4488, allocations: 167.4 kB / 0.5121 GB, free: 11.89 MB / 446.1 MB Notification: Performance of SimCode: time 3.51e-07/0.4488, allocations: 0 / 0.5121 GB, free: 11.89 MB / 446.1 MB Notification: Performance of Templates: time 0.2104/0.6593, allocations: 37.07 MB / 0.5484 GB, free: 138 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.makefile (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 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches