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.001232/0.001232, allocations: 181.3 kB / 17.01 MB, free: 5.125 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.587/1.587, allocations: 205.4 MB / 223.1 MB, free: 9.027 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.0008656/0.0008655, allocations: 92.16 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003104/0.0003105, allocations: 4 kB / 328.2 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2867, allocations: 47.57 MB / 375.8 MB, free: 45.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1219/0.4086, allocations: 102.4 MB / 478.2 MB, free: 10.25 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.4089, allocations: 79.95 kB / 478.2 MB, free: 10.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4122/0.8211, allocations: 124.2 MB / 0.5883 GB, free: 26.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.8212, allocations: 0 / 0.5883 GB, free: 26.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.252e-05/0.8212, allocations: 40 kB / 0.5884 GB, free: 26.21 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.005075/0.8263, allocations: 3.326 MB / 0.5916 GB, free: 22.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.8264, allocations: 11.97 kB / 0.5916 GB, free: 22.81 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000478/0.8269, allocations: 380.3 kB / 0.592 GB, free: 22.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004161/0.831, allocations: 2.287 MB / 0.5942 GB, free: 20.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.118e-05/0.8311, allocations: 40.98 kB / 0.5943 GB, free: 20.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001413/0.8312, allocations: 47.91 kB / 0.5943 GB, free: 19.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.8327, allocations: 0.9002 MB / 0.5952 GB, free: 19.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.8328, allocations: 0 / 0.5952 GB, free: 19.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.197e-05/0.8329, allocations: 20 kB / 0.5952 GB, free: 19.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.765e-05/0.8329, allocations: 23.98 kB / 0.5952 GB, free: 19.01 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001572/0.8345, allocations: 0.9177 MB / 0.5961 GB, free: 18.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004954/0.8394, allocations: 3.041 MB / 0.5991 GB, free: 14.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.8409, allocations: 0.8582 MB / 0.5999 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03553/0.8765, allocations: 35.87 MB / 0.635 GB, free: 5.117 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001236/0.8777, allocations: 0.6347 MB / 0.6356 GB, free: 4.469 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 2.935e-06/0.8778, allocations: 0 / 0.6356 GB, free: 4.469 MB / 410.7 MB Notification: Performance of matching and sorting (n=99): time 0.01341/0.8912, allocations: 6.077 MB / 0.6415 GB, free: 14.05 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001662/0.8914, allocations: 278 kB / 0.6418 GB, free: 13.71 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003322/0.8947, allocations: 2.256 MB / 0.644 GB, free: 11.45 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000115/0.8949, allocations: 45.7 kB / 0.644 GB, free: 11.39 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001203/0.8961, allocations: 1.299 MB / 0.6453 GB, free: 10.09 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003419/0.8964, allocations: 331.3 kB / 0.6456 GB, free: 9.762 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.412e-05/0.8965, allocations: 24 kB / 0.6456 GB, free: 9.738 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.8966, allocations: 345.9 kB / 0.646 GB, free: 9.395 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001246/0.8979, allocations: 0.5215 MB / 0.6465 GB, free: 8.871 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00138/0.8993, allocations: 0.7513 MB / 0.6472 GB, free: 8.035 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001257/0.9006, allocations: 0.5768 MB / 0.6478 GB, free: 7.461 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.9006, allocations: 4 kB / 0.6478 GB, free: 7.457 MB / 426.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004361/0.9049, allocations: 2.085 MB / 0.6498 GB, free: 5.293 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.476e-05/0.905, allocations: 8 kB / 0.6498 GB, free: 5.285 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001981/0.9052, allocations: 127.9 kB / 0.65 GB, free: 5.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007373/0.906, allocations: 272.9 kB / 0.6502 GB, free: 4.863 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008842/0.9069, allocations: 227.6 kB / 0.6504 GB, free: 4.641 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2342/1.141, allocations: 13.33 MB / 0.6634 GB, free: 90.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002327/1.143, allocations: 126.6 kB / 0.6636 GB, free: 90.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001546/1.144, allocations: 57.94 kB / 0.6636 GB, free: 90.77 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.001298/1.145, allocations: 435.8 kB / 0.664 GB, free: 90.65 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000519/1.145, allocations: 377.8 kB / 0.6644 GB, free: 90.64 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005154/1.151, allocations: 2.366 MB / 0.6667 GB, free: 90.29 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/1.151, allocations: 7.812 kB / 0.6667 GB, free: 90.29 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.879e-06/1.151, allocations: 7.922 kB / 0.6667 GB, free: 90.29 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/1.151, allocations: 3.703 kB / 0.6667 GB, free: 90.29 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002117/1.153, allocations: 1.553 MB / 0.6682 GB, free: 90.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001253/1.153, allocations: 116.7 kB / 0.6684 GB, free: 90.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007239/1.154, allocations: 168.4 kB / 0.6685 GB, free: 90.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005509/1.154, allocations: 259.9 kB / 0.6688 GB, free: 89.97 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.03e-05/1.154, allocations: 45.17 kB / 0.6688 GB, free: 89.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006128/1.16, allocations: 13.33 MB / 0.6818 GB, free: 77.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/1.161, allocations: 3.422 kB / 0.6818 GB, free: 77.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006053/1.167, allocations: 2.722 MB / 0.6845 GB, free: 76.91 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001613/1.168, allocations: 0.4974 MB / 0.685 GB, free: 76.63 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006101/1.169, allocations: 20.53 kB / 0.685 GB, free: 76.63 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001466/1.17, allocations: 115.5 kB / 0.6851 GB, free: 76.63 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004744/1.171, allocations: 143.2 kB / 0.6852 GB, free: 76.63 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001422/1.171, allocations: 53.77 kB / 0.6853 GB, free: 76.63 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003572/1.175, allocations: 1.75 MB / 0.687 GB, free: 76.45 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.964e-06/1.175, allocations: 3.938 kB / 0.687 GB, free: 76.45 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003003/1.178, allocations: 0.7163 MB / 0.6877 GB, free: 76.44 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.001799/1.179, allocations: 0.8944 MB / 0.6886 GB, free: 76.35 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005069/1.184, allocations: 2.639 MB / 0.6912 GB, free: 75.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/1.185, allocations: 3.438 kB / 0.6912 GB, free: 75.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003314/1.188, allocations: 2.002 MB / 0.6931 GB, free: 73.86 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002812/1.191, allocations: 481.8 kB / 0.6936 GB, free: 73.83 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/1.203, allocations: 5.333 MB / 0.6988 GB, free: 71.53 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002639/1.205, allocations: 1.718 MB / 0.7005 GB, free: 70.8 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002568/1.208, allocations: 346.9 kB / 0.7008 GB, free: 70.75 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006608/1.209, allocations: 145.2 kB / 0.7009 GB, free: 70.74 MB / 426.7 MB Notification: Performance of SimCode: time 3.516e-06/1.209, allocations: 0 / 0.7009 GB, free: 70.74 MB / 426.7 MB Notification: Performance of Templates: time 0.05672/1.265, allocations: 35.15 MB / 0.7352 GB, free: 61.16 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