Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 114.5 kB / 17.73 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 187 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.654/1.654, allocations: 205.1 MB / 224.6 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001445, allocations: 51.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.119, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.005164/0.1243, allocations: 2.699 MB / 377.4 MB, free: 2.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001881/0.1262, allocations: 0.7407 MB / 378.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003704/0.1267, allocations: 4 kB / 378.1 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002324/0.1269, allocations: 47.56 kB / 378.1 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003971/0.1273, allocations: 79.27 kB / 378.2 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005775/0.1279, allocations: 107.8 kB / 378.3 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007771/0.1287, allocations: 390.4 kB / 378.7 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003139/0.129, allocations: 84.5 kB / 378.8 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004722/0.1295, allocations: 151.5 kB / 378.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005298/0.1301, allocations: 171.3 kB / 379.1 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.1302, allocations: 32 kB / 379.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.921e-05/0.1303, allocations: 32 kB / 379.2 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.1304, allocations: 75.67 kB / 379.2 MB, free: 460 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002897/0.1307, allocations: 151.3 kB / 379.4 MB, free: 308 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2776/0.4084, allocations: 357.2 kB / 379.7 MB, free: 10.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.107e-06/0.4084, allocations: 0 / 379.7 MB, free: 10.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.4084, allocations: 0 / 379.7 MB, free: 10.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.415e-05/0.4085, allocations: 1 kB / 379.7 MB, free: 10.02 MB / 318.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.001988/0.4105, allocations: 0.6822 MB / 380.4 MB, free: 9.543 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.002e-05/0.4105, allocations: 9.625 kB / 380.4 MB, free: 9.543 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.833e-05/0.4106, allocations: 54.98 kB / 380.5 MB, free: 9.504 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.119e-05/0.4107, allocations: 33.25 kB / 380.5 MB, free: 9.488 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005042/0.4112, allocations: 274 kB / 380.8 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.804e-05/0.4113, allocations: 12.75 kB / 380.8 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.251e-05/0.4113, allocations: 23.66 kB / 380.8 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008506/0.4122, allocations: 310.5 kB / 381.1 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.4122, allocations: 1.688 kB / 381.1 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.4123, allocations: 5.312 kB / 381.1 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.4123, allocations: 7.797 kB / 381.1 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001075/0.4133, allocations: 293.2 kB / 381.4 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00208/0.4154, allocations: 0.9694 MB / 382.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003352/0.4188, allocations: 0.4889 MB / 382.9 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008048/0.4196, allocations: 211.9 kB / 383.1 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.828e-05/0.4197, allocations: 2.016 kB / 383.1 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007718/0.4205, allocations: 246.7 kB / 383.3 MB, free: 8.625 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.685e-06/0.4205, allocations: 1.125 kB / 383.3 MB, free: 8.625 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001735/0.4222, allocations: 466.1 kB / 383.8 MB, free: 8.566 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.227e-05/0.4223, allocations: 109.4 kB / 383.9 MB, free: 8.441 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004386/0.4228, allocations: 233.5 kB / 384.1 MB, free: 8.336 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.573e-05/0.4228, allocations: 32.39 kB / 384.2 MB, free: 8.305 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.4229, allocations: 158.1 kB / 384.3 MB, free: 8.199 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.295e-05/0.423, allocations: 78.83 kB / 384.4 MB, free: 8.148 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.4231, allocations: 47.31 kB / 384.4 MB, free: 8.133 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.952e-05/0.4232, allocations: 334.2 kB / 384.8 MB, free: 7.82 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004848/0.4237, allocations: 140 kB / 384.9 MB, free: 7.816 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004896/0.4242, allocations: 183.7 kB / 385.1 MB, free: 7.773 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009016/0.4251, allocations: 307.5 kB / 385.4 MB, free: 7.715 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.4251, allocations: 4 kB / 385.4 MB, free: 7.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001396/0.4266, allocations: 408.1 kB / 385.8 MB, free: 7.625 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.497e-05/0.4266, allocations: 36.98 kB / 385.8 MB, free: 7.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.485e-05/0.4267, allocations: 1.812 kB / 385.8 MB, free: 7.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.421e-05/0.4267, allocations: 1.875 kB / 385.8 MB, free: 7.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001922/0.4286, allocations: 243.4 kB / 386.1 MB, free: 7.582 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005218/0.4339, allocations: 3.403 MB / 389.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005625/0.4345, allocations: 58.09 kB / 389.5 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.723e-05/0.4345, allocations: 15.45 kB / 389.5 MB, free: 4.527 MB / 318.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.0002272/0.4348, allocations: 139.6 kB / 389.7 MB, free: 4.395 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.227e-05/0.4349, allocations: 24.03 kB / 389.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.836e-05/0.4349, allocations: 26.83 kB / 389.7 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.4349, allocations: 1.875 kB / 389.7 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.435, allocations: 4.656 kB / 389.7 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/0.435, allocations: 4.234 kB / 389.7 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002045/0.437, allocations: 0.895 MB / 390.6 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.4371, allocations: 1.719 kB / 390.6 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001873/0.4389, allocations: 232 kB / 390.8 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.749e-06/0.439, allocations: 6.031 kB / 390.9 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.847e-05/0.439, allocations: 7.938 kB / 390.9 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004388/0.4434, allocations: 3.409 MB / 394.3 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.4434, allocations: 5.625 kB / 394.3 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001666/0.4451, allocations: 0.5943 MB / 394.9 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/0.4453, allocations: 101.5 kB / 395 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.569e-05/0.4453, allocations: 10.73 kB / 395 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003668/0.4457, allocations: 35.78 kB / 395 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.4459, allocations: 27.83 kB / 395 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.814e-05/0.4459, allocations: 10.36 kB / 395.1 MB, free: 260 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002008/0.4461, allocations: 174.7 kB / 395.2 MB, free: 152 kB / 318.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4461, allocations: 0 / 395.2 MB, free: 152 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006666/0.4468, allocations: 82.83 kB / 395.3 MB, free: 136 kB / 318.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.002041/0.4489, allocations: 1.151 MB / 396.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002877/0.4518, allocations: 0.5359 MB / 397 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.4518, allocations: 3.547 kB / 397 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002089/0.4539, allocations: 352.5 kB / 397.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005517/0.4545, allocations: 36.48 kB / 397.4 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006798/0.4613, allocations: 3.133 MB / 400.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000493/0.4618, allocations: 0.7495 MB / 401.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001842/0.462, allocations: 22.09 kB / 401.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000211/0.4622, allocations: 88.45 kB / 401.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of SimCode: time 1.183e-06/0.4622, allocations: 2.297 kB / 401.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04156/0.5038, allocations: 6.371 MB / 407.7 MB, free: 9.828 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.64/13.14, allocations: 5.625 kB / 407.7 MB, free: 9.824 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ThyristorBehaviourTest/ThyristorBehaviourTest.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches