Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001151/0.001151, allocations: 118.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001225/0.001225, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2538, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.003697/0.2576, allocations: 2.772 MB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.2588, allocations: 0.7401 MB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001155/0.2589, allocations: 4 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001518/0.2591, allocations: 43.56 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000178/0.2593, allocations: 91.2 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003393/0.2596, allocations: 115.8 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003998/0.26, allocations: 386.5 kB / 412.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001888/0.2602, allocations: 84.69 kB / 413 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002838/0.2605, allocations: 155.5 kB / 413.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002132/0.2607, allocations: 171.3 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.018e-05/0.2608, allocations: 32 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.985e-05/0.2609, allocations: 36 kB / 413.4 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.298e-05/0.261, allocations: 75.73 kB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.2611, allocations: 159.2 kB / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000416/0.2616, allocations: 381.5 kB / 414 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2616, allocations: 7.938 kB / 414 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2616, allocations: 0 / 414 MB, free: 12.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.2616, allocations: 0 / 414 MB, free: 12.29 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001574/0.2632, allocations: 0.6801 MB / 414.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.2632, allocations: 12.03 kB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.192e-05/0.2633, allocations: 54.72 kB / 414.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001661/0.2635, allocations: 40.75 kB / 414.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003475/0.2638, allocations: 278.9 kB / 415 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.101e-05/0.2638, allocations: 16.81 kB / 415.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.894e-05/0.2639, allocations: 16.38 kB / 415.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007805/0.2647, allocations: 325.8 kB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.2647, allocations: 3.938 kB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.983e-05/0.2647, allocations: 8 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.2648, allocations: 4 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009486/0.2657, allocations: 293.5 kB / 415.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001662/0.2674, allocations: 0.9649 MB / 416.7 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002781/0.2702, allocations: 0.5059 MB / 417.2 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006926/0.2709, allocations: 214.9 kB / 417.4 MB, free: 8.703 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.13e-05/0.2709, allocations: 8 kB / 417.4 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000632/0.2716, allocations: 245.2 kB / 417.6 MB, free: 8.438 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.633e-06/0.2716, allocations: 0 / 417.6 MB, free: 8.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001553/0.2731, allocations: 473.6 kB / 418.1 MB, free: 7.969 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.446e-05/0.2732, allocations: 110.8 kB / 418.2 MB, free: 7.836 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002384/0.2735, allocations: 233 kB / 418.4 MB, free: 7.602 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.454e-05/0.2735, allocations: 29.7 kB / 418.4 MB, free: 7.566 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.2736, allocations: 168.3 kB / 418.6 MB, free: 7.398 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.27e-05/0.2737, allocations: 83.3 kB / 418.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.2738, allocations: 41.94 kB / 418.7 MB, free: 7.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.274, allocations: 334.8 kB / 419.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004818/0.2745, allocations: 144.4 kB / 419.2 MB, free: 6.793 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004963/0.275, allocations: 188.2 kB / 419.4 MB, free: 6.598 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009224/0.2759, allocations: 316 kB / 419.7 MB, free: 6.273 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2759, allocations: 0 / 419.7 MB, free: 6.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001171/0.2771, allocations: 422.9 kB / 420.1 MB, free: 5.848 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.142e-05/0.2771, allocations: 29.7 kB / 420.1 MB, free: 5.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.2772, allocations: 0 / 420.1 MB, free: 5.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.065e-05/0.2772, allocations: 4 kB / 420.1 MB, free: 5.809 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001729/0.2789, allocations: 271.6 kB / 420.4 MB, free: 5.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004489/0.2834, allocations: 3.443 MB / 423.9 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003772/0.2838, allocations: 55.97 kB / 423.9 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.623e-05/0.2839, allocations: 7.984 kB / 423.9 MB, free: 1.762 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001621/0.284, allocations: 145.7 kB / 424.1 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.351e-05/0.2841, allocations: 27.81 kB / 424.1 MB, free: 1.582 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.431e-05/0.2841, allocations: 34.17 kB / 424.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.2842, allocations: 3.938 kB / 424.1 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2842, allocations: 4 kB / 424.1 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.2842, allocations: 0 / 424.1 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001741/0.2859, allocations: 0.9038 MB / 425 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.2859, allocations: 0 / 425 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001706/0.2876, allocations: 263.7 kB / 425.3 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.2877, allocations: 0 / 425.3 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.897e-05/0.2877, allocations: 15.98 kB / 425.3 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004601/0.2923, allocations: 3.448 MB / 428.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2923, allocations: 0 / 428.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001583/0.2939, allocations: 0.5984 MB / 429.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.257e-05/0.294, allocations: 104.9 kB / 429.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.67e-05/0.2941, allocations: 8 kB / 429.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003503/0.2944, allocations: 44.02 kB / 429.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.492e-05/0.2945, allocations: 31.89 kB / 429.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-05/0.2946, allocations: 8 kB / 429.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001641/0.2947, allocations: 172.5 kB / 429.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2947, allocations: 3.938 kB / 429.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004771/0.2952, allocations: 79.89 kB / 429.8 MB, free: 11.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (thyristor_v4_1.vControl,inductor.i) * Number of discrete variables: 3 ($whenCondition1,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001829/0.2971, allocations: 1.155 MB / 430.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002516/0.2996, allocations: 0.5843 MB / 431.5 MB, free: 9.711 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2996, allocations: 0 / 431.5 MB, free: 9.711 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00196/0.3016, allocations: 383.7 kB / 431.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004332/0.302, allocations: 40.05 kB / 431.9 MB, free: 9.301 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00561/0.3076, allocations: 3.176 MB / 435.1 MB, free: 6.016 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.308, allocations: 0.7519 MB / 435.9 MB, free: 5.238 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000137/0.3081, allocations: 21.94 kB / 435.9 MB, free: 5.215 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.3083, allocations: 79.41 kB / 436 MB, free: 5.137 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3083, allocations: 4 kB / 436 MB, free: 5.133 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02573/0.334, allocations: 6.461 MB / 442.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.65, allocations: 11.62 kB / 442.4 MB, free: 14.84 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.csv --start-time 0 --stop-time 0.0002 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-08 Modelica_trunk_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ThyristorBehaviourTest/ThyristorBehaviourTest.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches