Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002447/0.002447, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 226.6 MB / 244.3 MB, free: 8.289 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007904/0.0007904, allocations: 100.5 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002142/0.0002143, allocations: 4 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1963/0.1965, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.007193/0.2037, allocations: 12.56 MB / 420.1 MB, free: 15.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01672/0.2205, allocations: 18.57 MB / 438.6 MB, free: 12.62 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00197/0.2225, allocations: 63.5 kB / 438.7 MB, free: 12.56 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00214/0.2247, allocations: 0.8711 MB / 439.6 MB, free: 11.68 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004907/0.2296, allocations: 1.836 MB / 441.4 MB, free: 9.836 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003062/0.2327, allocations: 1.112 MB / 442.5 MB, free: 8.719 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007306/0.24, allocations: 6.088 MB / 448.6 MB, free: 2.613 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005959/0.2406, allocations: 399.5 kB / 449 MB, free: 2.184 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00106/0.2417, allocations: 0.9406 MB / 449.9 MB, free: 1.238 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008961/0.2426, allocations: 0.994 MB / 450.9 MB, free: 244 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001426/0.2427, allocations: 40 kB / 451 MB, free: 204 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002864/0.2456, allocations: 1.341 MB / 452.3 MB, free: 14.86 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002126/0.2458, allocations: 266 kB / 452.6 MB, free: 14.59 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004749/0.2463, allocations: 0.5975 MB / 453.2 MB, free: 13.99 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002116/0.2484, allocations: 2.644 MB / 455.8 MB, free: 11.33 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.2484, allocations: 0 / 455.8 MB, free: 11.33 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.2485, allocations: 0 / 455.8 MB, free: 11.33 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.781e-05/0.2485, allocations: 0 / 455.8 MB, free: 11.33 MB / 330.7 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.004093/0.2526, allocations: 3.163 MB / 459 MB, free: 8.098 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.2526, allocations: 11.97 kB / 459 MB, free: 8.086 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000336/0.253, allocations: 379.4 kB / 459.3 MB, free: 7.711 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003148/0.2561, allocations: 2.38 MB / 461.7 MB, free: 5.258 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.166e-05/0.2562, allocations: 40.94 kB / 461.8 MB, free: 5.219 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/0.2563, allocations: 55.91 kB / 461.8 MB, free: 5.164 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.2577, allocations: 0.7928 MB / 462.6 MB, free: 4.367 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.2577, allocations: 0 / 462.6 MB, free: 4.367 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.715e-05/0.2578, allocations: 16 kB / 462.6 MB, free: 4.352 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.808e-05/0.2578, allocations: 19.98 kB / 462.6 MB, free: 4.332 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001678/0.2595, allocations: 0.9139 MB / 463.6 MB, free: 3.418 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004152/0.2636, allocations: 3.006 MB / 466.6 MB, free: 344 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001592/0.2652, allocations: 0.8573 MB / 467.4 MB, free: 15.47 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001379/0.2666, allocations: 0.9839 MB / 468.4 MB, free: 14.49 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0274/0.294, allocations: 30.74 MB / 499.1 MB, free: 11.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001109/0.2952, allocations: 0.623 MB / 499.8 MB, free: 10.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 2.575e-06/0.2952, allocations: 0 / 499.8 MB, free: 10.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=99): time 0.0115/0.3067, allocations: 5.709 MB / 0.4936 GB, free: 4.906 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.86e-05/0.3068, allocations: 64.41 kB / 0.4937 GB, free: 4.832 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002733/0.3095, allocations: 2.661 MB / 0.4963 GB, free: 2.156 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.174e-05/0.3096, allocations: 49.69 kB / 0.4963 GB, free: 2.102 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009966/0.3106, allocations: 1.299 MB / 0.4976 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002449/0.3109, allocations: 335.1 kB / 0.4979 GB, free: 476 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.735e-05/0.3109, allocations: 20 kB / 0.4979 GB, free: 456 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.311, allocations: 341.9 kB / 0.4983 GB, free: 108 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1482/0.4593, allocations: 0.5218 MB / 0.4988 GB, free: 96.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001458/0.4608, allocations: 0.7113 MB / 0.4995 GB, free: 96.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001244/0.462, allocations: 0.5717 MB / 0.5 GB, free: 96.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.462, allocations: 5.875 kB / 0.5 GB, free: 96.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003737/0.4658, allocations: 2.087 MB / 0.5021 GB, free: 95.85 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.4658, allocations: 7.812 kB / 0.5021 GB, free: 95.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001496/0.466, allocations: 119.3 kB / 0.5022 GB, free: 95.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006607/0.4666, allocations: 269.6 kB / 0.5025 GB, free: 95.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008398/0.4675, allocations: 234.9 kB / 0.5027 GB, free: 95.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005409/0.4729, allocations: 13.24 MB / 0.5156 GB, free: 82.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001419/0.4744, allocations: 128.8 kB / 0.5157 GB, free: 82.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001649/0.4745, allocations: 57 kB / 0.5158 GB, free: 82.41 MB / 378.7 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 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007193/0.4753, allocations: 424.2 kB / 0.5162 GB, free: 82.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000368/0.4756, allocations: 373.5 kB / 0.5165 GB, free: 81.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004487/0.4801, allocations: 2.34 MB / 0.5188 GB, free: 81 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.976e-06/0.4801, allocations: 11.83 kB / 0.5188 GB, free: 81 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.4802, allocations: 3.906 kB / 0.5188 GB, free: 81 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.4802, allocations: 3.938 kB / 0.5188 GB, free: 81 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001352/0.4815, allocations: 1.547 MB / 0.5204 GB, free: 80.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001065/0.4816, allocations: 117.4 kB / 0.5205 GB, free: 80.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006641/0.4823, allocations: 172.1 kB / 0.5206 GB, free: 80.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005428/0.4829, allocations: 267.2 kB / 0.5209 GB, free: 79.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.29e-05/0.483, allocations: 43.73 kB / 0.5209 GB, free: 79.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005332/0.4883, allocations: 13.23 MB / 0.5338 GB, free: 66.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.4883, allocations: 0 / 0.5338 GB, free: 66.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004509/0.4928, allocations: 2.729 MB / 0.5365 GB, free: 63.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006428/0.4935, allocations: 496.4 kB / 0.537 GB, free: 62.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002484/0.4938, allocations: 20 kB / 0.537 GB, free: 62.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000937/0.4947, allocations: 115.9 kB / 0.5371 GB, free: 62.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002651/0.495, allocations: 140.8 kB / 0.5372 GB, free: 62.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.534e-05/0.4951, allocations: 59.92 kB / 0.5373 GB, free: 62.65 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001703/0.4968, allocations: 1.735 MB / 0.539 GB, free: 60.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4968, allocations: 0 / 0.539 GB, free: 60.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001307/0.4981, allocations: 0.6549 MB / 0.5396 GB, free: 60.29 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009063/0.499, allocations: 0.7851 MB / 0.5404 GB, free: 59.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003238/0.5023, allocations: 2.639 MB / 0.543 GB, free: 56.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.5023, allocations: 0.5938 kB / 0.543 GB, free: 56.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001888/0.5042, allocations: 2.02 MB / 0.545 GB, free: 54.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001919/0.5061, allocations: 0.5989 MB / 0.5455 GB, free: 54.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005149/0.5113, allocations: 5.383 MB / 0.5508 GB, free: 48.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006812/0.512, allocations: 1.654 MB / 0.5524 GB, free: 47.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003197/0.5123, allocations: 167.4 kB / 0.5526 GB, free: 46.87 MB / 378.7 MB Notification: Performance of SimCode: time 7.32e-07/0.5123, allocations: 0 / 0.5526 GB, free: 46.87 MB / 378.7 MB Notification: Performance of Templates: time 0.2692/0.7815, allocations: 153.7 MB / 0.7026 GB, free: 118.8 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches