Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00134/0.00134, allocations: 191.8 kB / 17.37 MB, free: 4.438 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.239/1.239, allocations: 226.6 MB / 244.7 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007262/0.0007262, allocations: 95.59 kB / 296.8 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002095/0.0002095, allocations: 4 kB / 356.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1792/0.1794, allocations: 51.3 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.002718/0.1822, allocations: 3.454 MB / 411.5 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001672/0.1839, allocations: 1.507 MB / 413 MB, free: 22.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001729/0.184, allocations: 7.938 kB / 413 MB, free: 22.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005437/0.1846, allocations: 216 kB / 413.2 MB, free: 22.49 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004129/0.185, allocations: 260.4 kB / 413.5 MB, free: 22.24 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004541/0.1855, allocations: 225.3 kB / 413.7 MB, free: 22.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004246/0.1859, allocations: 0.6596 MB / 414.3 MB, free: 21.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002023/0.1861, allocations: 145.4 kB / 414.5 MB, free: 21.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002554/0.1864, allocations: 243 kB / 414.7 MB, free: 20.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002202/0.1866, allocations: 270.9 kB / 415 MB, free: 20.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.719e-05/0.1867, allocations: 28 kB / 415 MB, free: 20.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001499/0.1868, allocations: 63.92 kB / 415.1 MB, free: 20.62 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.902e-05/0.1869, allocations: 111.6 kB / 415.2 MB, free: 20.51 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001733/0.1871, allocations: 288.3 kB / 415.5 MB, free: 20.22 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003432/0.1875, allocations: 0.5112 MB / 416 MB, free: 19.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1875, allocations: 0 / 416 MB, free: 19.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1875, allocations: 3.938 kB / 416 MB, free: 19.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.1875, allocations: 0 / 416 MB, free: 19.7 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001103/0.1886, allocations: 0.8636 MB / 416.9 MB, free: 18.78 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.1886, allocations: 8.031 kB / 416.9 MB, free: 18.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001719/0.1888, allocations: 80.17 kB / 416.9 MB, free: 18.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003836/0.1892, allocations: 410.8 kB / 417.3 MB, free: 18.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.394e-05/0.1893, allocations: 33.31 kB / 417.4 MB, free: 18.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.612e-05/0.1893, allocations: 48.06 kB / 417.4 MB, free: 18.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005821/0.1899, allocations: 437.6 kB / 417.8 MB, free: 17.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.1899, allocations: 0 / 417.8 MB, free: 17.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.796e-05/0.19, allocations: 16 kB / 417.9 MB, free: 17.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.19, allocations: 11.94 kB / 417.9 MB, free: 17.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005053/0.1905, allocations: 319.8 kB / 418.2 MB, free: 17.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.1923, allocations: 1.726 MB / 419.9 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000548/0.1929, allocations: 363 kB / 420.3 MB, free: 15.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002635/0.1931, allocations: 185.6 kB / 420.4 MB, free: 15.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.876e-05/0.1932, allocations: 8 kB / 420.5 MB, free: 15.01 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003497/0.1935, allocations: 258.4 kB / 420.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 1.693e-06/0.1936, allocations: 0 / 420.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001765/0.1953, allocations: 1.036 MB / 421.7 MB, free: 13.6 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.707e-05/0.1954, allocations: 191.9 kB / 421.9 MB, free: 13.37 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004277/0.1958, allocations: 0.498 MB / 422.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.625e-05/0.1959, allocations: 37.7 kB / 422.5 MB, free: 12.81 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.196, allocations: 260.4 kB / 422.7 MB, free: 12.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.963e-05/0.196, allocations: 122.2 kB / 422.8 MB, free: 12.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.94e-05/0.1961, allocations: 8 kB / 422.8 MB, free: 12.42 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.983e-05/0.1961, allocations: 358.8 kB / 423.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002124/0.1963, allocations: 128.8 kB / 423.3 MB, free: 11.94 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002454/0.1966, allocations: 213.3 kB / 423.5 MB, free: 11.69 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003902/0.197, allocations: 269.3 kB / 423.8 MB, free: 11.42 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.197, allocations: 0 / 423.8 MB, free: 11.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006503/0.1977, allocations: 476.7 kB / 424.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.1977, allocations: 4 kB / 424.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.1977, allocations: 4 kB / 424.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004294/0.1981, allocations: 167.5 kB / 424.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001865/0.1983, allocations: 47.91 kB / 424.5 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003116/0.2015, allocations: 5.947 MB / 430.4 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003139/0.2018, allocations: 63.59 kB / 430.5 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.521e-05/0.2018, allocations: 16 kB / 430.5 MB, free: 4.148 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001888/0.202, allocations: 192 kB / 430.7 MB, free: 3.953 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.251e-05/0.2021, allocations: 51.38 kB / 430.7 MB, free: 3.902 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.954e-05/0.2022, allocations: 68.72 kB / 430.8 MB, free: 3.836 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.2022, allocations: 4 kB / 430.8 MB, free: 3.832 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.2022, allocations: 0 / 430.8 MB, free: 3.832 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.2022, allocations: 3.984 kB / 430.8 MB, free: 3.828 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000369/0.2026, allocations: 489.1 kB / 431.3 MB, free: 3.301 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.2026, allocations: 4 kB / 431.3 MB, free: 3.297 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001167/0.2027, allocations: 27.97 kB / 431.3 MB, free: 3.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003534/0.2031, allocations: 167.2 kB / 431.5 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.2031, allocations: 7.984 kB / 431.5 MB, free: 3.086 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003677/0.2068, allocations: 5.789 MB / 437.3 MB, free: 12.76 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/0.2068, allocations: 16.05 kB / 437.3 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009297/0.2077, allocations: 0.5046 MB / 437.8 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001735/0.2079, allocations: 164.3 kB / 438 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.225e-05/0.208, allocations: 12 kB / 438 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002571/0.2083, allocations: 31.97 kB / 438 MB, free: 11.99 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.2084, allocations: 51.92 kB / 438.1 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.447e-05/0.2085, allocations: 23.92 kB / 438.1 MB, free: 11.91 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003838/0.2088, allocations: 367 kB / 438.4 MB, free: 11.56 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2089, allocations: 0 / 438.4 MB, free: 11.56 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006856/0.2095, allocations: 167.8 kB / 438.6 MB, free: 11.39 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008504/0.2104, allocations: 425.9 kB / 439 MB, free: 11.12 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001079/0.2115, allocations: 0.7995 MB / 439.8 MB, free: 10.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.2115, allocations: 0 / 439.8 MB, free: 10.27 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006609/0.2122, allocations: 0.6587 MB / 440.5 MB, free: 9.555 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000544/0.2127, allocations: 121.1 kB / 440.6 MB, free: 9.441 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001746/0.2145, allocations: 1.174 MB / 441.8 MB, free: 8.242 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003891/0.2149, allocations: 0.8553 MB / 442.6 MB, free: 7.359 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.013e-05/0.215, allocations: 31.44 kB / 442.7 MB, free: 7.328 MB / 314.7 MB Notification: Performance of SimCode: time 2.11e-07/0.215, allocations: 0 / 442.7 MB, free: 7.328 MB / 314.7 MB Notification: Performance of Templates: time 0.01583/0.2308, allocations: 14.75 MB / 457.4 MB, free: 8.602 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches