Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 180.4 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.237/1.237, allocations: 223.2 MB / 240.3 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009062/0.0009062, allocations: 94.08 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003344/0.0003344, allocations: 7.938 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2888, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1602/0.4491, allocations: 104.3 MB / 0.4939 GB, free: 8.148 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002018/0.4494, allocations: 75.97 kB / 0.494 GB, free: 8.074 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3964/0.8458, allocations: 139.4 MB / 0.6301 GB, free: 12.54 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.447e-06/0.8458, allocations: 0 / 0.6301 GB, free: 12.54 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.827e-05/0.8459, allocations: 47.94 kB / 0.6302 GB, free: 12.5 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.005692/0.8516, allocations: 3.298 MB / 0.6334 GB, free: 9.129 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.8516, allocations: 12.03 kB / 0.6334 GB, free: 9.117 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003875/0.852, allocations: 376.9 kB / 0.6338 GB, free: 8.746 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003545/0.8556, allocations: 2.263 MB / 0.636 GB, free: 6.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.074e-05/0.8556, allocations: 40.98 kB / 0.636 GB, free: 6.367 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/0.8558, allocations: 48 kB / 0.6361 GB, free: 6.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001755/0.8575, allocations: 0.8963 MB / 0.6369 GB, free: 5.395 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.8576, allocations: 0 / 0.6369 GB, free: 5.395 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.474e-05/0.8577, allocations: 16 kB / 0.6369 GB, free: 5.379 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.412e-05/0.8577, allocations: 31.97 kB / 0.637 GB, free: 5.348 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001779/0.8595, allocations: 0.9138 MB / 0.6379 GB, free: 4.426 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005743/0.8652, allocations: 3.042 MB / 0.6408 GB, free: 1.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00174/0.867, allocations: 0.8458 MB / 0.6417 GB, free: 476 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2327/1.1, allocations: 35.77 MB / 0.6766 GB, free: 62.29 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001066/1.101, allocations: 0.6185 MB / 0.6772 GB, free: 62.23 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 3.827e-06/1.101, allocations: 3.906 kB / 0.6772 GB, free: 62.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=99): time 0.01154/1.112, allocations: 6.07 MB / 0.6831 GB, free: 59.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.158e-05/1.112, allocations: 276.9 kB / 0.6834 GB, free: 59.66 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002526/1.115, allocations: 2.242 MB / 0.6856 GB, free: 59.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.931e-05/1.115, allocations: 46.52 kB / 0.6856 GB, free: 59.37 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008426/1.116, allocations: 1.299 MB / 0.6869 GB, free: 59.22 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002284/1.116, allocations: 341.1 kB / 0.6872 GB, free: 59.06 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.697e-05/1.116, allocations: 15.72 kB / 0.6872 GB, free: 59.06 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.768e-05/1.116, allocations: 351.4 kB / 0.6876 GB, free: 58.75 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/1.117, allocations: 0.5198 MB / 0.6881 GB, free: 58.75 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001162/1.119, allocations: 0.7533 MB / 0.6888 GB, free: 58.51 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/1.12, allocations: 0.5785 MB / 0.6894 GB, free: 58.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/1.12, allocations: 0 / 0.6894 GB, free: 58.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003639/1.123, allocations: 2.092 MB / 0.6914 GB, free: 58 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/1.123, allocations: 6.531 kB / 0.6914 GB, free: 58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001278/1.124, allocations: 120.2 kB / 0.6915 GB, free: 58 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006079/1.124, allocations: 272.4 kB / 0.6918 GB, free: 57.92 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008427/1.125, allocations: 225.6 kB / 0.692 GB, free: 57.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006093/1.131, allocations: 13.34 MB / 0.705 GB, free: 45.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001947/1.133, allocations: 127.1 kB / 0.7052 GB, free: 45.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001423/1.133, allocations: 56.91 kB / 0.7052 GB, free: 45.39 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.001055/1.134, allocations: 424.1 kB / 0.7056 GB, free: 45.28 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004648/1.135, allocations: 376.8 kB / 0.706 GB, free: 45.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00482/1.14, allocations: 2.358 MB / 0.7083 GB, free: 44.71 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/1.14, allocations: 7.688 kB / 0.7083 GB, free: 44.71 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/1.14, allocations: 3.719 kB / 0.7083 GB, free: 44.71 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/1.14, allocations: 7.719 kB / 0.7083 GB, free: 44.71 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001883/1.142, allocations: 1.55 MB / 0.7098 GB, free: 44.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001105/1.142, allocations: 109.4 kB / 0.7099 GB, free: 44.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006869/1.142, allocations: 168 kB / 0.7101 GB, free: 44.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005512/1.143, allocations: 270 kB / 0.7103 GB, free: 44.38 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.41e-05/1.143, allocations: 46.25 kB / 0.7104 GB, free: 44.38 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005747/1.149, allocations: 13.32 MB / 0.7234 GB, free: 31.86 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/1.149, allocations: 11.03 kB / 0.7234 GB, free: 31.85 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004839/1.154, allocations: 2.715 MB / 0.7261 GB, free: 31.27 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001144/1.155, allocations: 0.4949 MB / 0.7265 GB, free: 30.99 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003089/1.155, allocations: 21.41 kB / 0.7266 GB, free: 30.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009757/1.156, allocations: 113.2 kB / 0.7267 GB, free: 30.99 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002895/1.156, allocations: 146.9 kB / 0.7268 GB, free: 30.99 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.155e-05/1.157, allocations: 50.08 kB / 0.7269 GB, free: 30.99 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002047/1.159, allocations: 1.737 MB / 0.7285 GB, free: 30.81 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.159, allocations: 0 / 0.7285 GB, free: 30.81 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002557/1.161, allocations: 0.7083 MB / 0.7292 GB, free: 30.81 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.00128/1.163, allocations: 0.9012 MB / 0.7301 GB, free: 30.71 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003442/1.166, allocations: 2.632 MB / 0.7327 GB, free: 29.46 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/1.166, allocations: 0 / 0.7327 GB, free: 29.46 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001986/1.168, allocations: 2.01 MB / 0.7347 GB, free: 28.22 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002052/1.17, allocations: 0.5766 MB / 0.7352 GB, free: 28.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005602/1.176, allocations: 5.304 MB / 0.7404 GB, free: 25.85 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008158/1.176, allocations: 1.715 MB / 0.7421 GB, free: 25.07 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001198/1.178, allocations: 343.6 kB / 0.7424 GB, free: 25 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002282/1.178, allocations: 144.1 kB / 0.7425 GB, free: 24.99 MB / 426.7 MB Notification: Performance of SimCode: time 5e-07/1.178, allocations: 0 / 0.7425 GB, free: 24.99 MB / 426.7 MB Notification: Performance of Templates: time 0.04983/1.228, allocations: 35.09 MB / 0.7768 GB, free: 6.477 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches