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.001895/0.001895, allocations: 111.7 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.001883/0.001883, allocations: 188.2 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.809/1.809, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001883/0.001883, allocations: 59.92 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1337, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.005301/0.1391, allocations: 2.707 MB / 377.4 MB, free: 2.336 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001648/0.1408, allocations: 0.733 MB / 378.1 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000209/0.141, allocations: 4 kB / 378.1 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001554/0.1412, allocations: 43.56 kB / 378.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001918/0.1414, allocations: 79.27 kB / 378.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003577/0.1418, allocations: 111.7 kB / 378.3 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005973/0.1424, allocations: 382.5 kB / 378.7 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002292/0.1426, allocations: 88.48 kB / 378.8 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003038/0.1429, allocations: 151.5 kB / 378.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003411/0.1433, allocations: 171.3 kB / 379.1 MB, free: 0.582 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.805e-05/0.1434, allocations: 32 kB / 379.1 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.848e-05/0.1434, allocations: 32 kB / 379.2 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.817e-05/0.1435, allocations: 71.75 kB / 379.2 MB, free: 460 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002193/0.1438, allocations: 155.3 kB / 379.4 MB, free: 304 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2413/0.385, allocations: 357.9 kB / 379.7 MB, free: 10.06 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.3851, allocations: 0 / 379.7 MB, free: 10.06 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3851, allocations: 0 / 379.7 MB, free: 10.06 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.75e-05/0.3851, allocations: 0.75 kB / 379.7 MB, free: 10.06 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.00161/0.3868, allocations: 0.6802 MB / 380.4 MB, free: 9.582 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.3868, allocations: 9.656 kB / 380.4 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.48e-05/0.3869, allocations: 53.95 kB / 380.5 MB, free: 9.543 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.574e-05/0.387, allocations: 32.03 kB / 380.5 MB, free: 9.527 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003678/0.3874, allocations: 271.5 kB / 380.8 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.454e-05/0.3874, allocations: 18.22 kB / 380.8 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.205e-05/0.3874, allocations: 21.17 kB / 380.8 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007594/0.3882, allocations: 314 kB / 381.1 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.3882, allocations: 2.359 kB / 381.1 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.764e-05/0.3883, allocations: 10.33 kB / 381.1 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.3883, allocations: 4.25 kB / 381.1 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009743/0.3893, allocations: 290.6 kB / 381.4 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001763/0.391, allocations: 0.9695 MB / 382.4 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003019/0.3941, allocations: 499.5 kB / 382.9 MB, free: 8.754 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006463/0.3947, allocations: 213.5 kB / 383.1 MB, free: 8.746 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/0.3948, allocations: 5.969 kB / 383.1 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006545/0.3954, allocations: 243.5 kB / 383.3 MB, free: 8.66 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.054e-06/0.3954, allocations: 0 / 383.3 MB, free: 8.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001571/0.397, allocations: 462.4 kB / 383.8 MB, free: 8.602 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/0.3971, allocations: 113.6 kB / 383.9 MB, free: 8.477 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002031/0.3973, allocations: 231.4 kB / 384.1 MB, free: 8.375 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.36e-05/0.3973, allocations: 30.67 kB / 384.1 MB, free: 8.344 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.458e-05/0.3974, allocations: 159.4 kB / 384.3 MB, free: 8.238 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.24e-05/0.3975, allocations: 78 kB / 384.4 MB, free: 8.188 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.598e-05/0.3976, allocations: 47.11 kB / 384.4 MB, free: 8.172 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.088e-05/0.3976, allocations: 337.2 kB / 384.8 MB, free: 7.855 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005343/0.3982, allocations: 137 kB / 384.9 MB, free: 7.855 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004708/0.3987, allocations: 181.5 kB / 385.1 MB, free: 7.812 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009167/0.3996, allocations: 310.6 kB / 385.4 MB, free: 7.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3996, allocations: 1.875 kB / 385.4 MB, free: 7.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001295/0.4009, allocations: 405.7 kB / 385.8 MB, free: 7.664 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.365e-05/0.401, allocations: 37.72 kB / 385.8 MB, free: 7.629 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.401, allocations: 0 / 385.8 MB, free: 7.629 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.401, allocations: 2.344 kB / 385.8 MB, free: 7.629 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002074/0.4031, allocations: 243.5 kB / 386 MB, free: 7.621 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003942/0.407, allocations: 3.407 MB / 389.4 MB, free: 4.543 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004128/0.4075, allocations: 57.61 kB / 389.5 MB, free: 4.523 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.055e-05/0.4075, allocations: 7.984 kB / 389.5 MB, free: 4.523 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.0001502/0.4077, allocations: 145.6 kB / 389.7 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.329e-05/0.4077, allocations: 24.16 kB / 389.7 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.3e-05/0.4078, allocations: 30.33 kB / 389.7 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.738e-06/0.4078, allocations: 3.719 kB / 389.7 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.4078, allocations: 4 kB / 389.7 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.4078, allocations: 2.453 kB / 389.7 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001879/0.4097, allocations: 0.8945 MB / 390.6 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.4097, allocations: 5.828 kB / 390.6 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001768/0.4115, allocations: 227.7 kB / 390.8 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.865e-06/0.4115, allocations: 2.375 kB / 390.8 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.126e-05/0.4116, allocations: 11.59 kB / 390.9 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004259/0.4158, allocations: 3.414 MB / 394.3 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.4159, allocations: 1.031 kB / 394.3 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001621/0.4175, allocations: 0.5925 MB / 394.9 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.485e-05/0.4176, allocations: 99.09 kB / 395 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.756e-05/0.4176, allocations: 10.11 kB / 395 MB, free: 268 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003634/0.418, allocations: 41.16 kB / 395 MB, free: 260 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/0.4182, allocations: 28.98 kB / 395 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.41e-05/0.4182, allocations: 8.359 kB / 395 MB, free: 252 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001654/0.4184, allocations: 169.8 kB / 395.2 MB, free: 144 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4184, allocations: 0 / 395.2 MB, free: 144 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005285/0.4189, allocations: 78.42 kB / 395.3 MB, free: 132 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.002175/0.4211, allocations: 1.157 MB / 396.4 MB, free: 15.3 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002679/0.4238, allocations: 0.5363 MB / 397 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/0.4239, allocations: 1.281 kB / 397 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002097/0.426, allocations: 355.7 kB / 397.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004738/0.4265, allocations: 41.17 kB / 397.4 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00711/0.4336, allocations: 3.135 MB / 400.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004942/0.4342, allocations: 0.7457 MB / 401.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001721/0.4343, allocations: 28.03 kB / 401.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001644/0.4345, allocations: 78.14 kB / 401.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4345, allocations: 1.125 kB / 401.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03857/0.4731, allocations: 6.377 MB / 407.7 MB, free: 9.828 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.34/13.81, allocations: 5.266 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