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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001151/0.001151, allocations: 195.1 kB / 8.537 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 225.5 MB / 234.4 MB, free: 3.34 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008949/0.0008949, allocations: 87.98 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.394e-06/7.595e-06, allocations: 0 / 343.1 MB, free: 8.715 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.102, allocations: 51.48 MB / 394.6 MB, free: 5.188 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2712/0.3733, allocations: 104.3 MB / 498.9 MB, free: 5.258 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002513/0.3736, allocations: 72.91 kB / 499 MB, free: 5.223 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.434/0.8076, allocations: 135.2 MB / 0.6193 GB, free: 80.93 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.534e-05/0.8076, allocations: 40.69 kB / 0.6193 GB, free: 80.93 MB / 442.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.004359/0.812, allocations: 2.683 MB / 0.622 GB, free: 79.48 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.8121, allocations: 7.906 kB / 0.622 GB, free: 79.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005078/0.8126, allocations: 382.7 kB / 0.6223 GB, free: 79.29 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003351/0.8159, allocations: 2.232 MB / 0.6245 GB, free: 78.66 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.627e-05/0.816, allocations: 19.66 kB / 0.6245 GB, free: 78.65 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001455/0.8161, allocations: 31.66 kB / 0.6246 GB, free: 78.65 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001013/0.8172, allocations: 0.6857 MB / 0.6252 GB, free: 78.65 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/0.8183, allocations: 0.7265 MB / 0.6259 GB, free: 78.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.492e-05/0.8183, allocations: 3.906 kB / 0.626 GB, free: 78.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.465e-05/0.8184, allocations: 3.375 kB / 0.626 GB, free: 78.52 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.984e-05/0.8184, allocations: 19.02 kB / 0.626 GB, free: 78.52 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005025/0.8234, allocations: 2.949 MB / 0.6289 GB, free: 78.05 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005761/0.824, allocations: 442 kB / 0.6293 GB, free: 77.96 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009328/0.825, allocations: 0.8139 MB / 0.6301 GB, free: 77.67 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03141/0.8564, allocations: 36.41 MB / 0.6656 GB, free: 48.12 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006714/0.8571, allocations: 477.8 kB / 0.6661 GB, free: 47.94 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 3.236e-06/0.8571, allocations: 4 kB / 0.6661 GB, free: 47.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=99): time 0.006061/0.8632, allocations: 3.352 MB / 0.6694 GB, free: 46.17 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.253e-05/0.8633, allocations: 275.4 kB / 0.6696 GB, free: 45.86 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002637/0.8659, allocations: 2.03 MB / 0.6716 GB, free: 45.05 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.585e-05/0.866, allocations: 32.98 kB / 0.6716 GB, free: 45.01 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003083/0.8663, allocations: 0.4977 MB / 0.6721 GB, free: 44.71 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001899/0.8665, allocations: 333.2 kB / 0.6724 GB, free: 44.45 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.243e-05/0.8666, allocations: 0 / 0.6724 GB, free: 44.45 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.533e-05/0.8666, allocations: 344.9 kB / 0.6728 GB, free: 44.13 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004401/0.8671, allocations: 306.8 kB / 0.6731 GB, free: 44 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005036/0.8676, allocations: 0.5249 MB / 0.6736 GB, free: 43.61 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005474/0.8682, allocations: 363.8 kB / 0.6739 GB, free: 43.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.8682, allocations: 6.25 kB / 0.6739 GB, free: 43.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002168/0.8703, allocations: 1.602 MB / 0.6755 GB, free: 42.62 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.8704, allocations: 6.375 kB / 0.6755 GB, free: 42.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001605/0.8705, allocations: 115.1 kB / 0.6756 GB, free: 42.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005908/0.8711, allocations: 260.4 kB / 0.6759 GB, free: 42.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008925/0.872, allocations: 246 kB / 0.6761 GB, free: 42.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005625/0.8777, allocations: 12.7 MB / 0.6885 GB, free: 29.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/0.8792, allocations: 118.9 kB / 0.6886 GB, free: 29.83 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.8793, allocations: 61.59 kB / 0.6887 GB, free: 29.82 MB / 442.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 () * 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.0002195/0.8795, allocations: 135.8 kB / 0.6888 GB, free: 29.69 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004063/0.88, allocations: 372.8 kB / 0.6891 GB, free: 29.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004858/0.8848, allocations: 2.125 MB / 0.6912 GB, free: 28.48 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.211e-05/0.8849, allocations: 13.72 kB / 0.6912 GB, free: 28.48 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.108e-05/0.8849, allocations: 3.406 kB / 0.6912 GB, free: 28.48 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.8849, allocations: 6.516 kB / 0.6912 GB, free: 28.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00257/0.8875, allocations: 1.436 MB / 0.6926 GB, free: 27.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001593/0.8877, allocations: 115 kB / 0.6928 GB, free: 27.83 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007586/0.8884, allocations: 185.9 kB / 0.6929 GB, free: 27.81 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005765/0.889, allocations: 254.4 kB / 0.6932 GB, free: 27.68 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001143/0.8891, allocations: 35.86 kB / 0.6932 GB, free: 27.67 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007704/0.8968, allocations: 12.69 MB / 0.7056 GB, free: 31.05 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.8969, allocations: 4.062 kB / 0.7056 GB, free: 31.05 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003391/0.9003, allocations: 2.035 MB / 0.7076 GB, free: 29.96 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/0.9013, allocations: 0.493 MB / 0.7081 GB, free: 29.62 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005941/0.9019, allocations: 7.219 kB / 0.7081 GB, free: 29.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001238/0.9032, allocations: 118.2 kB / 0.7082 GB, free: 29.61 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002496/0.9035, allocations: 115.8 kB / 0.7083 GB, free: 29.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001039/0.9036, allocations: 53.48 kB / 0.7084 GB, free: 29.59 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.002178/0.9057, allocations: 1.519 MB / 0.7098 GB, free: 28.94 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001692/0.9074, allocations: 0.674 MB / 0.7105 GB, free: 28.86 MB / 458.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) * 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.001334/0.9088, allocations: 0.9915 MB / 0.7115 GB, free: 28.57 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002265/0.9111, allocations: 2.045 MB / 0.7135 GB, free: 27.09 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.9111, allocations: 0 / 0.7135 GB, free: 27.09 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001507/0.9126, allocations: 1.659 MB / 0.7151 GB, free: 25.76 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002074/0.9147, allocations: 0.5347 MB / 0.7156 GB, free: 25.57 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005709/0.9204, allocations: 3.491 MB / 0.719 GB, free: 23.98 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001514/0.9219, allocations: 1.866 MB / 0.7208 GB, free: 22.82 MB / 458.7 MB Notification: Performance of SimCode: time 6.02e-07/0.9219, allocations: 0 / 0.7208 GB, free: 22.82 MB / 458.7 MB Notification: Performance of Templates: time 0.1834/1.105, allocations: 34.3 MB / 0.7543 GB, free: 141.6 MB / 458.7 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","../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches