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.001449/0.001449, allocations: 186.2 kB / 16.41 MB, free: 5.727 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.892/1.892, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.00109/0.00109, allocations: 97.53 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005127/0.0005127, allocations: 12 kB / 327 MB, free: 240 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3324/0.333, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1621/0.4951, allocations: 102.4 MB / 476.9 MB, free: 10.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002952/0.4955, allocations: 75.97 kB / 477 MB, free: 10.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6469/1.142, allocations: 124.2 MB / 0.5871 GB, free: 26.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.142, allocations: 0 / 0.5871 GB, free: 26.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.788e-05/1.143, allocations: 40 kB / 0.5871 GB, free: 26.35 MB / 378.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.008168/1.151, allocations: 3.322 MB / 0.5904 GB, free: 22.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/1.151, allocations: 8.031 kB / 0.5904 GB, free: 22.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006686/1.151, allocations: 384.2 kB / 0.5908 GB, free: 22.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005559/1.157, allocations: 2.283 MB / 0.593 GB, free: 20.22 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.251e-05/1.157, allocations: 36.98 kB / 0.593 GB, free: 20.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000198/1.157, allocations: 51.91 kB / 0.5931 GB, free: 20.13 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002402/1.16, allocations: 0.9002 MB / 0.5939 GB, free: 19.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.314e-05/1.16, allocations: 0 / 0.5939 GB, free: 19.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001138/1.16, allocations: 28 kB / 0.594 GB, free: 19.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.593e-05/1.16, allocations: 19.98 kB / 0.594 GB, free: 19.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002934/1.163, allocations: 0.9138 MB / 0.5949 GB, free: 18.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00768/1.171, allocations: 3.041 MB / 0.5979 GB, free: 15.13 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002871/1.174, allocations: 0.8582 MB / 0.5987 GB, free: 14.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05163/1.225, allocations: 35.88 MB / 0.6337 GB, free: 5.258 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002039/1.227, allocations: 0.6269 MB / 0.6343 GB, free: 4.617 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 4.568e-06/1.227, allocations: 0 / 0.6343 GB, free: 4.617 MB / 410.7 MB Notification: Performance of matching and sorting (n=99): time 0.02334/1.251, allocations: 6.074 MB / 0.6403 GB, free: 14.19 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001607/1.251, allocations: 278 kB / 0.6405 GB, free: 13.86 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004767/1.256, allocations: 2.264 MB / 0.6427 GB, free: 11.58 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002547/1.256, allocations: 45.7 kB / 0.6428 GB, free: 11.53 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001412/1.257, allocations: 1.051 MB / 0.6438 GB, free: 10.48 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005181/1.258, allocations: 335.1 kB / 0.6441 GB, free: 10.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001356/1.258, allocations: 16 kB / 0.6442 GB, free: 10.13 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001512/1.258, allocations: 350.8 kB / 0.6445 GB, free: 9.781 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002382/1.261, allocations: 0.5215 MB / 0.645 GB, free: 9.258 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002594/1.263, allocations: 0.7552 MB / 0.6457 GB, free: 8.418 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002446/1.266, allocations: 0.5768 MB / 0.6463 GB, free: 7.844 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/1.266, allocations: 0 / 0.6463 GB, free: 7.844 MB / 426.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.006546/1.272, allocations: 1.792 MB / 0.648 GB, free: 5.977 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/1.272, allocations: 12.09 kB / 0.6481 GB, free: 5.965 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002818/1.273, allocations: 123.9 kB / 0.6482 GB, free: 5.844 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/1.274, allocations: 272.3 kB / 0.6484 GB, free: 5.547 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001752/1.276, allocations: 227.7 kB / 0.6487 GB, free: 5.324 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2958/1.571, allocations: 13.33 MB / 0.6617 GB, free: 90.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002601/1.574, allocations: 127.5 kB / 0.6618 GB, free: 90.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002242/1.574, allocations: 57.31 kB / 0.6619 GB, free: 90.91 MB / 426.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.00135/1.576, allocations: 433.4 kB / 0.6623 GB, free: 90.79 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006457/1.576, allocations: 377 kB / 0.6626 GB, free: 90.79 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008875/1.585, allocations: 2.37 MB / 0.6649 GB, free: 90.43 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.766e-05/1.585, allocations: 7.031 kB / 0.6649 GB, free: 90.43 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/1.585, allocations: 3.094 kB / 0.665 GB, free: 90.43 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2e-05/1.585, allocations: 6.75 kB / 0.665 GB, free: 90.43 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003263/1.589, allocations: 1.552 MB / 0.6665 GB, free: 90.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002655/1.589, allocations: 117.6 kB / 0.6666 GB, free: 90.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001378/1.59, allocations: 165.5 kB / 0.6667 GB, free: 90.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001059/1.591, allocations: 268.8 kB / 0.667 GB, free: 90.12 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002103/1.592, allocations: 44.81 kB / 0.667 GB, free: 90.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009417/1.601, allocations: 13.33 MB / 0.6801 GB, free: 77.65 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/1.601, allocations: 0 / 0.6801 GB, free: 77.65 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009175/1.61, allocations: 2.725 MB / 0.6827 GB, free: 77.06 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00144/1.612, allocations: 499.2 kB / 0.6832 GB, free: 76.79 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006456/1.612, allocations: 20.53 kB / 0.6832 GB, free: 76.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002184/1.615, allocations: 123.1 kB / 0.6833 GB, free: 76.79 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005629/1.615, allocations: 143 kB / 0.6835 GB, free: 76.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001541/1.615, allocations: 53.95 kB / 0.6835 GB, free: 76.78 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003631/1.619, allocations: 1.754 MB / 0.6852 GB, free: 76.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.01e-07/1.619, allocations: 0 / 0.6852 GB, free: 76.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002844/1.622, allocations: 0.7076 MB / 0.6859 GB, free: 76.6 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) * 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.001999/1.624, allocations: 0.9005 MB / 0.6868 GB, free: 76.51 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006786/1.631, allocations: 2.636 MB / 0.6894 GB, free: 75.26 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/1.631, allocations: 2.609 kB / 0.6894 GB, free: 75.26 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004348/1.635, allocations: 2.013 MB / 0.6913 GB, free: 74.02 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002733/1.638, allocations: 480 kB / 0.6918 GB, free: 73.98 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0116/1.65, allocations: 5.388 MB / 0.6971 GB, free: 71.65 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001681/1.651, allocations: 1.722 MB / 0.6987 GB, free: 70.93 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007146/1.652, allocations: 151.5 kB / 0.6989 GB, free: 70.92 MB / 426.7 MB Notification: Performance of SimCode: time 1.152e-06/1.652, allocations: 1.375 kB / 0.6989 GB, free: 70.92 MB / 426.7 MB Notification: Performance of Templates: time 0.4828/2.135, allocations: 143.3 MB / 0.8388 GB, free: 127.8 MB / 458.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