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/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_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/Complex trunk/package.mo): time 0.001005/0.001005, allocations: 198 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.184/1.184, allocations: 227.2 MB / 245 MB, free: 5.863 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000858/0.0008579, allocations: 103.7 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002473/0.0002474, allocations: 12 kB / 357.9 MB, free: 9.316 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.1828, allocations: 51.48 MB / 409.4 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1097/0.2926, allocations: 105.1 MB / 0.5025 GB, free: 1.418 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/0.2928, allocations: 75.97 kB / 0.5025 GB, free: 1.344 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3868/0.6796, allocations: 139.8 MB / 0.639 GB, free: 1.621 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.6797, allocations: 7.938 kB / 0.6391 GB, free: 1.613 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.844e-05/0.6797, allocations: 44 kB / 0.6391 GB, free: 1.57 MB / 410.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.005233/0.685, allocations: 3.306 MB / 0.6423 GB, free: 14.2 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.685, allocations: 8.031 kB / 0.6423 GB, free: 14.19 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003564/0.6854, allocations: 383.7 kB / 0.6427 GB, free: 13.81 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003363/0.6887, allocations: 2.263 MB / 0.6449 GB, free: 11.47 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.778e-05/0.6888, allocations: 29 kB / 0.6449 GB, free: 11.44 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.6889, allocations: 51.98 kB / 0.645 GB, free: 11.39 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001562/0.6905, allocations: 0.9002 MB / 0.6459 GB, free: 10.45 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.6905, allocations: 0 / 0.6459 GB, free: 10.45 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.332e-05/0.6906, allocations: 19.94 kB / 0.6459 GB, free: 10.43 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.308e-05/0.6906, allocations: 23.98 kB / 0.6459 GB, free: 10.41 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001736/0.6924, allocations: 0.91 MB / 0.6468 GB, free: 9.496 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005029/0.6974, allocations: 3.042 MB / 0.6498 GB, free: 6.391 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001617/0.699, allocations: 0.8574 MB / 0.6506 GB, free: 5.52 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2131/0.9122, allocations: 36.41 MB / 0.6862 GB, free: 74.3 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009736/0.9132, allocations: 0.6237 MB / 0.6868 GB, free: 74.25 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 2.926e-06/0.9132, allocations: 0 / 0.6868 GB, free: 74.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=99): time 0.01132/0.9245, allocations: 6.065 MB / 0.6927 GB, free: 71.99 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.459e-05/0.9247, allocations: 280.1 kB / 0.693 GB, free: 71.68 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002552/0.9272, allocations: 2.244 MB / 0.6951 GB, free: 71.41 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.757e-05/0.9273, allocations: 45.98 kB / 0.6952 GB, free: 71.38 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008184/0.9282, allocations: 1.297 MB / 0.6965 GB, free: 71.24 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002051/0.9284, allocations: 337.4 kB / 0.6968 GB, free: 71.07 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.48e-05/0.9284, allocations: 19.03 kB / 0.6968 GB, free: 71.07 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.324e-05/0.9285, allocations: 352.5 kB / 0.6971 GB, free: 70.77 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001086/0.9296, allocations: 0.5201 MB / 0.6976 GB, free: 70.77 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00127/0.9309, allocations: 0.7541 MB / 0.6984 GB, free: 70.52 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.932, allocations: 0.5802 MB / 0.6989 GB, free: 70.51 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.932, allocations: 0 / 0.6989 GB, free: 70.51 MB / 442.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003582/0.9356, allocations: 2.094 MB / 0.701 GB, free: 70 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.9356, allocations: 13.42 kB / 0.701 GB, free: 70 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001288/0.9358, allocations: 112.3 kB / 0.7011 GB, free: 70 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006019/0.9364, allocations: 266.5 kB / 0.7014 GB, free: 69.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008087/0.9372, allocations: 233.8 kB / 0.7016 GB, free: 69.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006025/0.9432, allocations: 13.32 MB / 0.7146 GB, free: 57.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001507/0.9448, allocations: 132.8 kB / 0.7147 GB, free: 57.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.9449, allocations: 57.25 kB / 0.7148 GB, free: 57.4 MB / 442.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.0009777/0.9459, allocations: 427.1 kB / 0.7152 GB, free: 57.29 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003206/0.9462, allocations: 372.8 kB / 0.7155 GB, free: 57.1 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004696/0.9509, allocations: 2.367 MB / 0.7179 GB, free: 56.72 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.9509, allocations: 8.812 kB / 0.7179 GB, free: 56.72 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.9509, allocations: 4.25 kB / 0.7179 GB, free: 56.72 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.9509, allocations: 3.234 kB / 0.7179 GB, free: 56.72 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001711/0.9527, allocations: 1.549 MB / 0.7194 GB, free: 56.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001102/0.9528, allocations: 116.7 kB / 0.7195 GB, free: 56.47 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006899/0.9535, allocations: 170.4 kB / 0.7197 GB, free: 56.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005369/0.954, allocations: 259.7 kB / 0.7199 GB, free: 56.39 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.761e-05/0.9541, allocations: 49.2 kB / 0.7199 GB, free: 56.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005486/0.9596, allocations: 13.33 MB / 0.733 GB, free: 43.87 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.9596, allocations: 3.953 kB / 0.733 GB, free: 43.87 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004596/0.9642, allocations: 2.713 MB / 0.7356 GB, free: 43.29 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/0.9653, allocations: 0.4908 MB / 0.7361 GB, free: 43 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002759/0.9656, allocations: 19.31 kB / 0.7361 GB, free: 43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009315/0.9665, allocations: 120.8 kB / 0.7362 GB, free: 43 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003007/0.9668, allocations: 143.5 kB / 0.7364 GB, free: 43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.293e-05/0.9669, allocations: 50.09 kB / 0.7364 GB, free: 43 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001948/0.9689, allocations: 1.735 MB / 0.7381 GB, free: 42.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.9689, allocations: 0 / 0.7381 GB, free: 42.82 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001585/0.9705, allocations: 0.7109 MB / 0.7388 GB, free: 42.82 MB / 442.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.001129/0.9716, allocations: 0.9192 MB / 0.7397 GB, free: 42.72 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003381/0.975, allocations: 2.627 MB / 0.7423 GB, free: 41.47 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.975, allocations: 0 / 0.7423 GB, free: 41.47 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001935/0.977, allocations: 2.009 MB / 0.7442 GB, free: 40.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/0.979, allocations: 0.5724 MB / 0.7448 GB, free: 40.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005358/0.9844, allocations: 5.308 MB / 0.75 GB, free: 37.91 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007742/0.9852, allocations: 1.716 MB / 0.7516 GB, free: 37.14 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001246/0.9864, allocations: 340 kB / 0.752 GB, free: 37.06 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002902/0.9867, allocations: 144.4 kB / 0.7521 GB, free: 37.05 MB / 442.7 MB Notification: Performance of SimCode: time 1.983e-06/0.9867, allocations: 0 / 0.7521 GB, free: 37.05 MB / 442.7 MB Notification: Performance of Templates: time 0.04721/1.034, allocations: 35.11 MB / 0.7864 GB, free: 21.29 MB / 442.7 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","../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches