Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_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_3.2.3_cpp_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.002831/0.002836, allocations: 182.8 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.127/3.127, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001918/0.001918, allocations: 97.48 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006593/0.0006596, allocations: 8 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6516/0.6523, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.02612/0.6785, allocations: 10.88 MB / 385.4 MB, free: 36.92 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.04942/0.728, allocations: 16.69 MB / 402.1 MB, free: 21.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005205/0.7333, allocations: 63.5 kB / 402.2 MB, free: 21.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007108/0.7405, allocations: 0.8668 MB / 403 MB, free: 20.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01836/0.759, allocations: 2.049 MB / 405.1 MB, free: 18.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01108/0.7701, allocations: 1.153 MB / 406.2 MB, free: 17.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02744/0.7976, allocations: 6.014 MB / 412.2 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002435/0.8002, allocations: 407.3 kB / 412.6 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002981/0.8032, allocations: 0.8163 MB / 413.4 MB, free: 9.816 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003298/0.8066, allocations: 0.963 MB / 414.4 MB, free: 8.848 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00085/0.8075, allocations: 44 kB / 414.5 MB, free: 8.805 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01215/0.8197, allocations: 1.21 MB / 415.7 MB, free: 7.594 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001455/0.8212, allocations: 270 kB / 415.9 MB, free: 7.328 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002051/0.8233, allocations: 0.6014 MB / 416.5 MB, free: 6.719 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007946/0.8313, allocations: 2.564 MB / 419.1 MB, free: 4.148 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.8314, allocations: 0 / 419.1 MB, free: 4.148 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.448e-06/0.8315, allocations: 4 kB / 419.1 MB, free: 4.145 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001565/0.8317, allocations: 0 / 419.1 MB, free: 4.145 MB / 298.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.01345/0.8451, allocations: 3.167 MB / 422.3 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.818e-05/0.8452, allocations: 15.91 kB / 422.3 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001505/0.8468, allocations: 383.4 kB / 422.7 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01241/0.8592, allocations: 2.396 MB / 425 MB, free: 14.04 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/0.8594, allocations: 29 kB / 425.1 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005123/0.8599, allocations: 48 kB / 425.1 MB, free: 13.97 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005729/0.8657, allocations: 0.7928 MB / 425.9 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.641e-05/0.8658, allocations: 0 / 425.9 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002786/0.8661, allocations: 16 kB / 425.9 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.657e-05/0.8662, allocations: 19.98 kB / 426 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005798/0.872, allocations: 0.9178 MB / 426.9 MB, free: 12.21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01803/0.8901, allocations: 2.997 MB / 429.9 MB, free: 9.156 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005355/0.8956, allocations: 0.8544 MB / 430.7 MB, free: 8.297 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08022/0.9759, allocations: 30.33 MB / 461.1 MB, free: 5.855 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003795/0.9797, allocations: 0.6192 MB / 461.7 MB, free: 5.227 MB / 346.7 MB Notification: Performance of pre-optimization done (n=96): time 8.165e-06/0.9798, allocations: 0 / 461.7 MB, free: 5.227 MB / 346.7 MB Notification: Performance of matching and sorting (n=99): time 0.04323/1.023, allocations: 6.015 MB / 467.7 MB, free: 14.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/1.023, allocations: 64.41 kB / 467.7 MB, free: 14.81 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01229/1.036, allocations: 2.686 MB / 470.4 MB, free: 12.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000422/1.036, allocations: 45.7 kB / 470.5 MB, free: 12.06 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002791/1.039, allocations: 1.054 MB / 471.5 MB, free: 11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009321/1.04, allocations: 335.2 kB / 471.9 MB, free: 10.67 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002894/1.04, allocations: 16 kB / 471.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004383/1.041, allocations: 350.8 kB / 472.2 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005383/1.046, allocations: 0.5254 MB / 472.7 MB, free: 9.781 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004305/1.05, allocations: 0.7095 MB / 473.5 MB, free: 9 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005369/1.056, allocations: 0.573 MB / 474 MB, free: 8.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.604e-05/1.056, allocations: 0 / 474 MB, free: 8.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.01278/1.069, allocations: 1.796 MB / 475.8 MB, free: 6.559 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.968e-05/1.069, allocations: 8 kB / 475.8 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005365/1.069, allocations: 120 kB / 475.9 MB, free: 6.434 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002005/1.072, allocations: 268.6 kB / 476.2 MB, free: 6.141 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002807/1.074, allocations: 235.6 kB / 476.4 MB, free: 5.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02767/1.102, allocations: 13.32 MB / 489.8 MB, free: 7.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003984/1.106, allocations: 124 kB / 489.9 MB, free: 7.148 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005271/1.107, allocations: 59.94 kB / 489.9 MB, free: 7.09 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.003982/1.111, allocations: 433.4 kB / 490.4 MB, free: 6.656 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001737/1.113, allocations: 371.5 kB / 490.7 MB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01781/1.13, allocations: 2.367 MB / 493.1 MB, free: 3.836 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.758e-05/1.131, allocations: 8 kB / 493.1 MB, free: 3.828 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.179e-05/1.131, allocations: 8 kB / 493.1 MB, free: 3.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.194e-05/1.131, allocations: 3.984 kB / 493.1 MB, free: 3.816 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008528/1.139, allocations: 1.551 MB / 494.7 MB, free: 2.215 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0005356/1.14, allocations: 116 kB / 494.8 MB, free: 2.102 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002241/1.142, allocations: 167.8 kB / 494.9 MB, free: 1.938 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001849/1.144, allocations: 260.3 kB / 495.2 MB, free: 1.652 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005838/1.145, allocations: 47.98 kB / 495.2 MB, free: 1.605 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01677/1.162, allocations: 13.31 MB / 0.4966 GB, free: 2.965 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/1.162, allocations: 0 / 0.4966 GB, free: 2.965 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01105/1.173, allocations: 2.739 MB / 0.4993 GB, free: 140 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.3255/1.498, allocations: 485 kB / 0.4998 GB, free: 125.9 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000736/1.499, allocations: 21.08 kB / 0.4998 GB, free: 125.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002094/1.501, allocations: 116.1 kB / 0.4999 GB, free: 125.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006228/1.502, allocations: 139.2 kB / 0.5 GB, free: 125.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002069/1.502, allocations: 52.58 kB / 0.5001 GB, free: 125.9 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00709/1.509, allocations: 1.744 MB / 0.5018 GB, free: 125.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.583e-06/1.509, allocations: 0.5 kB / 0.5018 GB, free: 125.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003721/1.513, allocations: 0.6527 MB / 0.5024 GB, free: 125.8 MB / 394.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.001947/1.515, allocations: 0.7869 MB / 0.5032 GB, free: 125.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007159/1.522, allocations: 2.641 MB / 0.5058 GB, free: 124.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/1.522, allocations: 0 / 0.5058 GB, free: 124.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004409/1.527, allocations: 2.01 MB / 0.5077 GB, free: 123.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00308/1.53, allocations: 498.3 kB / 0.5082 GB, free: 123 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01183/1.542, allocations: 5.405 MB / 0.5135 GB, free: 120.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001278/1.543, allocations: 1.727 MB / 0.5152 GB, free: 119.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007662/1.544, allocations: 165.9 kB / 0.5153 GB, free: 119.2 MB / 394.7 MB Notification: Performance of SimCode: time 1.604e-06/1.544, allocations: 0 / 0.5153 GB, free: 119.2 MB / 394.7 MB Notification: Performance of Templates: time 0.7965/2.34, allocations: 144.5 MB / 0.6565 GB, free: 154.1 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches