Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001149/0.001149, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.385/1.385, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009095/0.0009096, allocations: 82.64 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.169e-05/2.173e-05, allocations: 4 kB / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0871/0.08713, allocations: 47.57 MB / 370 MB, free: 1.715 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3418/0.429, allocations: 102.3 MB / 472.3 MB, free: 7.215 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002058/0.4293, allocations: 75.55 kB / 472.4 MB, free: 7.176 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4955/0.9248, allocations: 124.1 MB / 0.5825 GB, free: 90.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.9249, allocations: 0 / 0.5825 GB, free: 90.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.83e-05/0.925, allocations: 41.25 kB / 0.5825 GB, free: 90.89 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.004826/0.9298, allocations: 2.645 MB / 0.5851 GB, free: 89.29 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/0.9299, allocations: 7.812 kB / 0.5851 GB, free: 89.29 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004488/0.9303, allocations: 387.4 kB / 0.5855 GB, free: 89.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003626/0.9339, allocations: 2.261 MB / 0.5877 GB, free: 88.05 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.964e-05/0.934, allocations: 31.88 kB / 0.5877 GB, free: 88.04 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001253/0.9341, allocations: 49.94 kB / 0.5878 GB, free: 88.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.9353, allocations: 0.7994 MB / 0.5886 GB, free: 87.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.9353, allocations: 0 / 0.5886 GB, free: 87.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.25e-05/0.9354, allocations: 19.94 kB / 0.5886 GB, free: 87.63 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.217e-05/0.9354, allocations: 18.91 kB / 0.5886 GB, free: 87.62 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009469/0.9364, allocations: 0.7037 MB / 0.5893 GB, free: 87.42 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00516/0.9415, allocations: 3.037 MB / 0.5923 GB, free: 85.98 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009811/0.9425, allocations: 0.658 MB / 0.5929 GB, free: 85.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009374/0.9435, allocations: 0.8794 MB / 0.5938 GB, free: 85.32 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02978/0.9733, allocations: 35.97 MB / 0.6289 GB, free: 47.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007756/0.9741, allocations: 0.5253 MB / 0.6294 GB, free: 46.54 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 6.071e-06/0.9741, allocations: 0 / 0.6294 GB, free: 46.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=99): time 0.006379/0.9805, allocations: 3.481 MB / 0.6328 GB, free: 42.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000142/0.9807, allocations: 269.8 kB / 0.6331 GB, free: 42.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003248/0.984, allocations: 2.23 MB / 0.6352 GB, free: 40.36 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002258/0.9842, allocations: 41.7 kB / 0.6353 GB, free: 40.31 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001002/0.9853, allocations: 1.307 MB / 0.6365 GB, free: 39 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002899/0.9856, allocations: 336.8 kB / 0.6369 GB, free: 38.67 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.98e-05/0.9856, allocations: 16 kB / 0.6369 GB, free: 38.66 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.878e-05/0.9857, allocations: 349.9 kB / 0.6372 GB, free: 38.31 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005097/0.9863, allocations: 326.3 kB / 0.6375 GB, free: 37.99 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005837/0.9868, allocations: 0.5444 MB / 0.6381 GB, free: 37.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005393/0.9874, allocations: 395.4 kB / 0.6384 GB, free: 36.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.9874, allocations: 0 / 0.6384 GB, free: 36.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002637/0.9901, allocations: 1.682 MB / 0.6401 GB, free: 35.21 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.9901, allocations: 12.09 kB / 0.6401 GB, free: 35.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000141/0.9902, allocations: 123.9 kB / 0.6402 GB, free: 35.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006491/0.9909, allocations: 256.4 kB / 0.6405 GB, free: 34.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009/0.9918, allocations: 235.6 kB / 0.6407 GB, free: 34.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006423/0.9982, allocations: 13.25 MB / 0.6536 GB, free: 19.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002327/1.001, allocations: 120 kB / 0.6537 GB, free: 19.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003334/1.001, allocations: 63.98 kB / 0.6538 GB, free: 19.81 MB / 410.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 () * 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.0004569/1.001, allocations: 168.6 kB / 0.654 GB, free: 19.64 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001002/1.002, allocations: 379.7 kB / 0.6543 GB, free: 19.26 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004884/1.007, allocations: 1.956 MB / 0.6562 GB, free: 17.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/1.007, allocations: 8 kB / 0.6562 GB, free: 17.22 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.767e-05/1.007, allocations: 4 kB / 0.6562 GB, free: 17.22 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/1.007, allocations: 3.984 kB / 0.6562 GB, free: 17.21 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003825/1.011, allocations: 1.553 MB / 0.6578 GB, free: 15.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001746/1.011, allocations: 116 kB / 0.6579 GB, free: 15.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007907/1.012, allocations: 171.8 kB / 0.658 GB, free: 15.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006381/1.013, allocations: 260.3 kB / 0.6583 GB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001443/1.013, allocations: 39.98 kB / 0.6583 GB, free: 15.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007354/1.02, allocations: 13.23 MB / 0.6712 GB, free: 480 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/1.021, allocations: 12.06 kB / 0.6713 GB, free: 468 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004661/1.025, allocations: 2.118 MB / 0.6733 GB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001896/1.027, allocations: 0.4965 MB / 0.6738 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00109/1.028, allocations: 16 kB / 0.6738 GB, free: 13.72 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001746/1.03, allocations: 119.9 kB / 0.6739 GB, free: 13.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004388/1.03, allocations: 140.6 kB / 0.6741 GB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001402/1.031, allocations: 51.97 kB / 0.6741 GB, free: 13.41 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004388/1.035, allocations: 1.714 MB / 0.6758 GB, free: 11.69 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.71e-07/1.035, allocations: 0 / 0.6758 GB, free: 11.69 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003451/1.039, allocations: 0.7145 MB / 0.6765 GB, free: 10.97 MB / 426.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) * 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.002087/1.041, allocations: 0.8942 MB / 0.6774 GB, free: 10.24 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003755/1.044, allocations: 2.215 MB / 0.6795 GB, free: 7.871 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/1.044, allocations: 4.188 kB / 0.6795 GB, free: 7.867 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002476/1.047, allocations: 1.794 MB / 0.6813 GB, free: 5.926 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002764/1.05, allocations: 485.2 kB / 0.6817 GB, free: 5.445 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008326/1.058, allocations: 3.532 MB / 0.6852 GB, free: 1.875 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002066/1.06, allocations: 1.724 MB / 0.6869 GB, free: 124 kB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.2469/1.307, allocations: 343.3 kB / 0.6872 GB, free: 99.67 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004812/1.308, allocations: 149 kB / 0.6873 GB, free: 99.67 MB / 426.7 MB Notification: Performance of SimCode: time 1.623e-06/1.308, allocations: 0 / 0.6873 GB, free: 99.67 MB / 426.7 MB Notification: Performance of Templates: time 0.06978/1.377, allocations: 36.56 MB / 0.723 GB, free: 95.71 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches