Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001276/0.001276, allocations: 118.5 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001317, allocations: 215.7 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.389/1.389, allocations: 227.6 MB / 247.9 MB, free: 10.21 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 59.91 kB / 359.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.225/0.2269, allocations: 50.55 MB / 410.2 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01398/0.2409, allocations: 14.23 MB / 424.4 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02369/0.2646, allocations: 20.39 MB / 444.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002094/0.2667, allocations: 126.9 kB / 444.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002929/0.2696, allocations: 1.124 MB / 446.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006576/0.2762, allocations: 2.313 MB / 448.4 MB, free: 11.28 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004102/0.2803, allocations: 1.443 MB / 449.8 MB, free: 9.828 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009515/0.2898, allocations: 6.515 MB / 456.3 MB, free: 3.297 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005395/0.2903, allocations: 252.5 kB / 456.6 MB, free: 3.016 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001493/0.2918, allocations: 1.097 MB / 457.7 MB, free: 1.914 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001219/0.2931, allocations: 1.083 MB / 458.8 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001654/0.2932, allocations: 76 kB / 458.8 MB, free: 0.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003588/0.2968, allocations: 1.483 MB / 460.3 MB, free: 15.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003269/0.2971, allocations: 317.8 kB / 460.6 MB, free: 14.95 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001381/0.2985, allocations: 1.324 MB / 462 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005044/0.3036, allocations: 3.702 MB / 465.7 MB, free: 9.902 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3036, allocations: 0 / 465.7 MB, free: 9.902 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3036, allocations: 0 / 465.7 MB, free: 9.902 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.318e-05/0.3036, allocations: 3.938 kB / 465.7 MB, free: 9.898 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.005671/0.3093, allocations: 3.697 MB / 469.4 MB, free: 6.125 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.3093, allocations: 8.031 kB / 469.4 MB, free: 6.117 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004527/0.3098, allocations: 397.5 kB / 469.8 MB, free: 5.727 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003799/0.3136, allocations: 2.551 MB / 472.3 MB, free: 3.102 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.065e-05/0.3136, allocations: 37 kB / 472.3 MB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001367/0.3138, allocations: 48 kB / 472.4 MB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/0.3153, allocations: 0.7576 MB / 473.1 MB, free: 2.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.3153, allocations: 0 / 473.1 MB, free: 2.254 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.807e-05/0.3154, allocations: 23.98 kB / 473.2 MB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.316e-05/0.3154, allocations: 19.98 kB / 473.2 MB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001848/0.3172, allocations: 0.8514 MB / 474 MB, free: 1.359 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005059/0.3223, allocations: 2.986 MB / 477 MB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001765/0.3241, allocations: 0.7246 MB / 477.7 MB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001477/0.3255, allocations: 0.855 MB / 478.6 MB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03244/0.358, allocations: 30.69 MB / 0.4974 GB, free: 9.77 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001238/0.3592, allocations: 0.6035 MB / 0.498 GB, free: 9.156 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.815e-06/0.3592, allocations: 0 / 0.498 GB, free: 9.156 MB / 430.1 MB Notification: Performance of matching and sorting (n=99): time 0.01232/0.3715, allocations: 5.266 MB / 0.5031 GB, free: 3.641 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/0.3716, allocations: 64.41 kB / 0.5032 GB, free: 3.566 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003263/0.3749, allocations: 2.696 MB / 0.5058 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.508e-05/0.375, allocations: 41.7 kB / 0.5058 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001209/0.3762, allocations: 1.304 MB / 0.5071 GB, free: 15.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003091/0.3765, allocations: 356.9 kB / 0.5074 GB, free: 15.15 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003572/0.3768, allocations: 238.4 kB / 0.5077 GB, free: 14.91 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.377, allocations: 341.9 kB / 0.508 GB, free: 14.57 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001312/0.3783, allocations: 478 kB / 0.5084 GB, free: 14.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001427/0.3797, allocations: 0.6482 MB / 0.5091 GB, free: 13.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002711/0.3824, allocations: 1.126 MB / 0.5102 GB, free: 12.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3824, allocations: 4 kB / 0.5102 GB, free: 12.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004201/0.3866, allocations: 1.981 MB / 0.5121 GB, free: 10.14 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.3867, allocations: 11.94 kB / 0.5121 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000181/0.3868, allocations: 116.5 kB / 0.5122 GB, free: 10.01 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006937/0.3875, allocations: 272.4 kB / 0.5125 GB, free: 9.715 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000905/0.3884, allocations: 199.7 kB / 0.5127 GB, free: 9.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/0.3995, allocations: 14.26 MB / 0.5266 GB, free: 9.863 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001428/0.401, allocations: 83.91 kB / 0.5267 GB, free: 9.781 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001271/0.4011, allocations: 59.98 kB / 0.5268 GB, free: 9.723 MB / 462.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.000853/0.402, allocations: 429.6 kB / 0.5272 GB, free: 9.293 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004369/0.4024, allocations: 385.6 kB / 0.5275 GB, free: 8.914 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004951/0.4073, allocations: 2.214 MB / 0.5297 GB, free: 6.617 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/0.4074, allocations: 12 kB / 0.5297 GB, free: 6.605 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.437e-06/0.4074, allocations: 8 kB / 0.5297 GB, free: 6.598 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.4074, allocations: 3.984 kB / 0.5297 GB, free: 6.594 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001964/0.4093, allocations: 1.535 MB / 0.5312 GB, free: 5.008 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001636/0.4095, allocations: 108 kB / 0.5313 GB, free: 4.902 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007567/0.4103, allocations: 139.8 kB / 0.5315 GB, free: 4.766 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006542/0.4109, allocations: 264.3 kB / 0.5317 GB, free: 4.477 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.543e-05/0.411, allocations: 43.98 kB / 0.5317 GB, free: 4.434 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1866/0.5976, allocations: 14.23 MB / 0.5456 GB, free: 119.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.5976, allocations: 7.594 kB / 0.5457 GB, free: 119.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005107/0.6027, allocations: 2.559 MB / 0.5482 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007241/0.6034, allocations: 0.5068 MB / 0.5486 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002862/0.6037, allocations: 21.27 kB / 0.5487 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009547/0.6046, allocations: 80.17 kB / 0.5487 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003083/0.605, allocations: 146.9 kB / 0.5489 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.585e-05/0.605, allocations: 47.16 kB / 0.5489 GB, free: 118.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001868/0.6069, allocations: 1.769 MB / 0.5507 GB, free: 117.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6069, allocations: 0 / 0.5507 GB, free: 117.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00138/0.6083, allocations: 0.6529 MB / 0.5513 GB, free: 117.9 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.0009819/0.6093, allocations: 0.8196 MB / 0.5521 GB, free: 117.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003359/0.6126, allocations: 2.444 MB / 0.5545 GB, free: 116.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.6126, allocations: 0 / 0.5545 GB, free: 116.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002106/0.6147, allocations: 1.903 MB / 0.5563 GB, free: 114.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0023/0.617, allocations: 0.6338 MB / 0.557 GB, free: 114.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005517/0.6226, allocations: 4.765 MB / 0.5616 GB, free: 111.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000745/0.6233, allocations: 1.66 MB / 0.5632 GB, free: 109.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009921/0.6243, allocations: 395.3 kB / 0.5636 GB, free: 109.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002456/0.6245, allocations: 171.4 kB / 0.5638 GB, free: 109.2 MB / 462.1 MB Notification: Performance of SimCode: time 6.62e-07/0.6245, allocations: 0 / 0.5638 GB, free: 109.2 MB / 462.1 MB Notification: Performance of Templates: time 0.04929/0.6738, allocations: 37.39 MB / 0.6003 GB, free: 72.03 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches