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.00181/0.00181, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002151/0.002151, allocations: 197.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 71.86 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2676, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.004105/0.2718, allocations: 2.764 MB / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001299/0.2731, allocations: 0.74 MB / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.2733, allocations: 11.94 kB / 412.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001571/0.2734, allocations: 43.58 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001584/0.2736, allocations: 79.27 kB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003407/0.274, allocations: 115.7 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004308/0.2744, allocations: 390.5 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001918/0.2746, allocations: 88.67 kB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002695/0.2749, allocations: 147.5 kB / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000221/0.2751, allocations: 175.3 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.295e-05/0.2752, allocations: 32 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.075e-05/0.2753, allocations: 43.98 kB / 413.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.535e-05/0.2753, allocations: 75.69 kB / 413.5 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.2755, allocations: 159.2 kB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000436/0.276, allocations: 373.5 kB / 414 MB, free: 12.31 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.276, allocations: 0 / 414 MB, free: 12.31 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.276, allocations: 0 / 414 MB, free: 12.31 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.824e-06/0.276, allocations: 0 / 414 MB, free: 12.31 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.001587/0.2776, allocations: 0.684 MB / 414.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.2776, allocations: 12.03 kB / 414.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.788e-05/0.2777, allocations: 62.66 kB / 414.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/0.2779, allocations: 40.73 kB / 414.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004689/0.2784, allocations: 274.8 kB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.531e-05/0.2784, allocations: 24.8 kB / 415.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.922e-05/0.2785, allocations: 16.38 kB / 415.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007812/0.2793, allocations: 309.9 kB / 415.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.2793, allocations: 0 / 415.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.264e-05/0.2793, allocations: 12 kB / 415.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.2794, allocations: 4 kB / 415.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009233/0.2803, allocations: 305.5 kB / 415.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.2821, allocations: 0.9726 MB / 416.7 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00306/0.2852, allocations: 0.4944 MB / 417.2 MB, free: 8.934 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000614/0.2858, allocations: 212.7 kB / 417.4 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.531e-05/0.2858, allocations: 0 / 417.4 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006647/0.2865, allocations: 249.2 kB / 417.6 MB, free: 8.461 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.403e-06/0.2865, allocations: 0 / 417.6 MB, free: 8.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001515/0.288, allocations: 476 kB / 418.1 MB, free: 7.992 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.2882, allocations: 110.8 kB / 418.2 MB, free: 7.859 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002612/0.2884, allocations: 237 kB / 418.4 MB, free: 7.621 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4e-05/0.2885, allocations: 33.7 kB / 418.5 MB, free: 7.582 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.2886, allocations: 160.3 kB / 418.6 MB, free: 7.422 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.619e-05/0.2887, allocations: 79.3 kB / 418.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.2888, allocations: 49.94 kB / 418.7 MB, free: 7.289 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.289, allocations: 334.8 kB / 419.1 MB, free: 6.953 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004624/0.2894, allocations: 144.3 kB / 419.2 MB, free: 6.812 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004721/0.2899, allocations: 180.2 kB / 419.4 MB, free: 6.625 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008968/0.2908, allocations: 324 kB / 419.7 MB, free: 6.293 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2908, allocations: 4 kB / 419.7 MB, free: 6.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001069/0.2919, allocations: 410.9 kB / 420.1 MB, free: 5.875 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.913e-05/0.292, allocations: 33.7 kB / 420.1 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.292, allocations: 0 / 420.1 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.292, allocations: 0 / 420.1 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001856/0.2938, allocations: 271.6 kB / 420.4 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005074/0.2989, allocations: 3.447 MB / 423.8 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003914/0.2993, allocations: 55.98 kB / 423.9 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.715e-05/0.2994, allocations: 12 kB / 423.9 MB, free: 1.781 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.0001856/0.2996, allocations: 137.8 kB / 424 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.06e-05/0.2996, allocations: 27.81 kB / 424.1 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.347e-05/0.2997, allocations: 34.11 kB / 424.1 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.2997, allocations: 8 kB / 424.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.2997, allocations: 0 / 424.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.2997, allocations: 0 / 424.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00176/0.3015, allocations: 0.9071 MB / 425 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.3015, allocations: 7.984 kB / 425 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001818/0.3033, allocations: 251.7 kB / 425.3 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.3033, allocations: 4 kB / 425.3 MB, free: 348 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.679e-05/0.3034, allocations: 8 kB / 425.3 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004818/0.3082, allocations: 3.456 MB / 428.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3082, allocations: 0 / 428.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001502/0.3097, allocations: 0.6062 MB / 429.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.597e-05/0.3098, allocations: 105 kB / 429.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.035e-05/0.3099, allocations: 4 kB / 429.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003683/0.3103, allocations: 39.95 kB / 429.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.832e-05/0.3104, allocations: 27.95 kB / 429.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-05/0.3104, allocations: 4 kB / 429.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000183/0.3106, allocations: 176.5 kB / 429.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3106, allocations: 0 / 429.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004806/0.3111, allocations: 83.89 kB / 429.8 MB, free: 11.52 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.001858/0.3129, allocations: 1.166 MB / 430.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002635/0.3156, allocations: 0.5732 MB / 431.5 MB, free: 9.742 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.3156, allocations: 4 kB / 431.5 MB, free: 9.738 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002059/0.3177, allocations: 383.8 kB / 431.9 MB, free: 9.363 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004089/0.3181, allocations: 36.42 kB / 431.9 MB, free: 9.328 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005761/0.3239, allocations: 3.172 MB / 435.1 MB, free: 6.047 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004124/0.3243, allocations: 0.7558 MB / 435.9 MB, free: 5.266 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001289/0.3244, allocations: 21.95 kB / 435.9 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.3246, allocations: 83.41 kB / 436 MB, free: 5.16 MB / 350.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3246, allocations: 0 / 436 MB, free: 5.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0409/0.3655, allocations: 6.461 MB / 442.4 MB, free: 14.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.11, allocations: 11.22 kB / 442.4 MB, free: 14.86 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.1.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