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/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 trunk/package.mo", uses=false) 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) 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_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/ModelicaServices trunk/package.mo): time 0.0009839/0.0009839, allocations: 96.7 kB / 17 MB, free: 6.797 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001301/0.001301, allocations: 199 kB / 17.91 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.7 MB / 246.4 MB, free: 11.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003189/0.0003189, allocations: 8 kB / 307.1 MB, free: 1.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1289, allocations: 51.53 MB / 358.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01866/0.1476, allocations: 12.57 MB / 371.2 MB, free: 1.016 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1977/0.3453, allocations: 18.56 MB / 389.8 MB, free: 3.961 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001866/0.3472, allocations: 62.44 kB / 389.8 MB, free: 3.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002837/0.3501, allocations: 0.8764 MB / 390.7 MB, free: 3.543 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00895/0.359, allocations: 1.83 MB / 392.5 MB, free: 2.461 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005629/0.3647, allocations: 1.116 MB / 393.7 MB, free: 1.898 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0105/0.3752, allocations: 6.093 MB / 399.7 MB, free: 15.4 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008952/0.3762, allocations: 388.7 kB / 400.1 MB, free: 15.2 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002053/0.3782, allocations: 0.9403 MB / 401.1 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001777/0.38, allocations: 0.9888 MB / 402.1 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001744/0.3802, allocations: 41.78 kB / 402.1 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005081/0.3853, allocations: 1.332 MB / 403.4 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003173/0.3856, allocations: 275.7 kB / 403.7 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001003/0.3866, allocations: 0.5999 MB / 404.3 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002717/0.3894, allocations: 2.634 MB / 406.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3894, allocations: 0 / 406.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.328e-06/0.3894, allocations: 0 / 406.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.613e-05/0.3895, allocations: 3.938 kB / 406.9 MB, free: 11.3 MB / 318.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.004583/0.394, allocations: 3.163 MB / 410.1 MB, free: 8.383 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.3941, allocations: 12.03 kB / 410.1 MB, free: 8.371 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004299/0.3945, allocations: 383.4 kB / 410.5 MB, free: 7.992 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003677/0.3982, allocations: 2.376 MB / 412.9 MB, free: 5.543 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.422e-05/0.3983, allocations: 33.88 kB / 412.9 MB, free: 5.512 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.3984, allocations: 55.86 kB / 412.9 MB, free: 5.457 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001489/0.3999, allocations: 0.789 MB / 413.7 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.3999, allocations: 0 / 413.7 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.456e-05/0.4, allocations: 19.98 kB / 413.8 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.86e-05/0.4, allocations: 23.92 kB / 413.8 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001761/0.4018, allocations: 0.9178 MB / 414.7 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005026/0.4068, allocations: 3.002 MB / 417.7 MB, free: 0.625 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001695/0.4086, allocations: 0.8532 MB / 418.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001488/0.4101, allocations: 0.9878 MB / 419.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02984/0.4399, allocations: 30.74 MB / 450.3 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00115/0.4411, allocations: 0.6308 MB / 450.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 2.836e-06/0.4411, allocations: 4 kB / 450.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.0115/0.4526, allocations: 5.694 MB / 456.6 MB, free: 5.184 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/0.4527, allocations: 72.39 kB / 456.7 MB, free: 5.102 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003106/0.4558, allocations: 2.665 MB / 459.3 MB, free: 2.422 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.131e-05/0.4559, allocations: 45.64 kB / 459.4 MB, free: 2.371 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001124/0.457, allocations: 1.299 MB / 460.7 MB, free: 1.066 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002655/0.4573, allocations: 335.2 kB / 461 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.539e-05/0.4574, allocations: 20 kB / 461 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.4575, allocations: 345.9 kB / 461.4 MB, free: 380 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.4588, allocations: 0.5255 MB / 461.9 MB, free: 15.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/0.4601, allocations: 0.7095 MB / 462.6 MB, free: 15.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001286/0.4614, allocations: 0.5652 MB / 463.2 MB, free: 14.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.4614, allocations: 4 kB / 463.2 MB, free: 14.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003823/0.4652, allocations: 2.1 MB / 465.3 MB, free: 12.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.4653, allocations: 8 kB / 465.3 MB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001769/0.4655, allocations: 124 kB / 465.4 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006668/0.4661, allocations: 272.8 kB / 465.7 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008857/0.467, allocations: 223.7 kB / 465.9 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008799/0.4758, allocations: 13.25 MB / 479.1 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001537/0.4774, allocations: 120 kB / 479.3 MB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.4775, allocations: 56 kB / 479.3 MB, free: 12.94 MB / 398.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 ($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.0008783/0.4784, allocations: 425.6 kB / 479.7 MB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003852/0.4788, allocations: 371.5 kB / 480.1 MB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005331/0.4842, allocations: 2.336 MB / 482.4 MB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.4842, allocations: 8 kB / 482.4 MB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.4842, allocations: 8 kB / 482.4 MB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.4842, allocations: 7.922 kB / 482.4 MB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001925/0.4861, allocations: 1.547 MB / 484 MB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001637/0.4863, allocations: 116 kB / 484.1 MB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007161/0.487, allocations: 171.8 kB / 484.3 MB, free: 7.824 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000648/0.4877, allocations: 260.3 kB / 484.5 MB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.944e-05/0.4878, allocations: 43.98 kB / 484.6 MB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009743/0.4976, allocations: 13.23 MB / 497.8 MB, free: 8.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.4976, allocations: 0 / 497.8 MB, free: 8.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005405/0.503, allocations: 2.724 MB / 0.4888 GB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008984/0.5039, allocations: 0.4889 MB / 0.4893 GB, free: 5.605 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002956/0.5042, allocations: 20 kB / 0.4893 GB, free: 5.586 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009201/0.5051, allocations: 119.9 kB / 0.4894 GB, free: 5.469 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003363/0.5055, allocations: 144.7 kB / 0.4895 GB, free: 5.324 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/0.5056, allocations: 51.98 kB / 0.4896 GB, free: 5.273 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002279/0.5079, allocations: 1.735 MB / 0.4913 GB, free: 3.531 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5079, allocations: 0 / 0.4913 GB, free: 3.531 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00157/0.5095, allocations: 0.66 MB / 0.4919 GB, free: 2.871 MB / 414.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 (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.5106, allocations: 0.7789 MB / 0.4927 GB, free: 2.082 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004019/0.5146, allocations: 2.639 MB / 0.4953 GB, free: 15.29 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.5147, allocations: 0 / 0.4953 GB, free: 15.29 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00253/0.5172, allocations: 2.019 MB / 0.4972 GB, free: 13.12 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002437/0.5196, allocations: 0.6014 MB / 0.4978 GB, free: 12.51 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006609/0.5263, allocations: 5.315 MB / 0.503 GB, free: 7.172 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001094/0.5274, allocations: 1.662 MB / 0.5046 GB, free: 5.48 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001419/0.5288, allocations: 391.3 kB / 0.505 GB, free: 5.094 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002885/0.5291, allocations: 167.4 kB / 0.5052 GB, free: 4.93 MB / 430.1 MB Notification: Performance of SimCode: time 5.11e-07/0.5291, allocations: 0 / 0.5052 GB, free: 4.93 MB / 430.1 MB Notification: Performance of Templates: time 0.2228/0.7519, allocations: 34.38 MB / 0.5387 GB, free: 141.8 MB / 446.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches