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.001196/0.001196, allocations: 104.1 kB / 17.58 MB, free: 5.422 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.001144/0.001144, allocations: 191.9 kB / 18.51 MB, free: 4.508 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.467/1.467, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001167/0.001167, allocations: 56.14 kB / 280.7 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1039, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.004693/0.1086, allocations: 2.703 MB / 330.1 MB, free: 1.652 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001399/0.1101, allocations: 0.7332 MB / 330.8 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.1102, allocations: 7.938 kB / 330.8 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001657/0.1104, allocations: 39.62 kB / 330.9 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001681/0.1106, allocations: 87.2 kB / 330.9 MB, free: 0.7773 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003365/0.1109, allocations: 99.8 kB / 331 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004293/0.1114, allocations: 386.5 kB / 331.4 MB, free: 308 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000209/0.1116, allocations: 84.69 kB / 331.5 MB, free: 228 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000216/0.1118, allocations: 147.4 kB / 331.7 MB, free: 80 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002556/0.1121, allocations: 171.4 kB / 331.8 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.317e-05/0.1121, allocations: 32 kB / 331.8 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.849e-05/0.1122, allocations: 32 kB / 331.9 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.742e-05/0.1123, allocations: 71.69 kB / 332 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.1125, allocations: 159.3 kB / 332.1 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004014/0.1129, allocations: 359.1 kB / 332.5 MB, free: 15.27 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.78e-06/0.1129, allocations: 0 / 332.5 MB, free: 15.27 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1129, allocations: 4 kB / 332.5 MB, free: 15.27 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.1129, allocations: 0 / 332.5 MB, free: 15.27 MB / 286.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.00158/0.1145, allocations: 0.6608 MB / 333.1 MB, free: 14.55 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.1146, allocations: 12.03 kB / 333.1 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.887e-05/0.1146, allocations: 50.73 kB / 333.2 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.506e-05/0.1147, allocations: 32.56 kB / 333.2 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003602/0.1151, allocations: 272.5 kB / 333.5 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.941e-05/0.1151, allocations: 20.75 kB / 333.5 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.301e-05/0.1152, allocations: 16.38 kB / 333.5 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007555/0.116, allocations: 317.8 kB / 333.8 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.116, allocations: 0 / 333.8 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.974e-05/0.116, allocations: 8 kB / 333.8 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.116, allocations: 8 kB / 333.8 MB, free: 13.76 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009252/0.117, allocations: 289.5 kB / 334.1 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001784/0.1188, allocations: 0.9841 MB / 335.1 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002835/0.1216, allocations: 490.2 kB / 335.6 MB, free: 11.94 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006312/0.1223, allocations: 216.7 kB / 335.8 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.561e-05/0.1223, allocations: 7.984 kB / 335.8 MB, free: 11.72 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007214/0.123, allocations: 237.7 kB / 336 MB, free: 11.46 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.824e-06/0.1231, allocations: 0 / 336 MB, free: 11.46 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001513/0.1246, allocations: 461.4 kB / 336.5 MB, free: 11.01 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.751e-05/0.1247, allocations: 110.8 kB / 336.6 MB, free: 10.88 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000233/0.1249, allocations: 233 kB / 336.8 MB, free: 10.64 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/0.1249, allocations: 33.7 kB / 336.9 MB, free: 10.6 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.1251, allocations: 156.2 kB / 337 MB, free: 10.44 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.31e-05/0.1251, allocations: 78.88 kB / 337.1 MB, free: 10.36 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.1252, allocations: 41.94 kB / 337.1 MB, free: 10.32 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1254, allocations: 338.8 kB / 337.5 MB, free: 9.977 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004698/0.1259, allocations: 136.4 kB / 337.6 MB, free: 9.844 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004715/0.1263, allocations: 176.2 kB / 337.8 MB, free: 9.66 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009033/0.1272, allocations: 320 kB / 338.1 MB, free: 9.332 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.1273, allocations: 0 / 338.1 MB, free: 9.332 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001096/0.1284, allocations: 410.7 kB / 338.5 MB, free: 8.918 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.653e-05/0.1284, allocations: 29.7 kB / 338.5 MB, free: 8.883 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.1284, allocations: 0 / 338.5 MB, free: 8.883 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.315e-05/0.1285, allocations: 4 kB / 338.5 MB, free: 8.879 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001711/0.1302, allocations: 243.6 kB / 338.7 MB, free: 8.641 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004715/0.1349, allocations: 3.404 MB / 342.2 MB, free: 4.957 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004632/0.1354, allocations: 59.86 kB / 342.2 MB, free: 4.898 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.457e-05/0.1354, allocations: 11.92 kB / 342.2 MB, free: 4.887 MB / 286.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.000204/0.1357, allocations: 138.5 kB / 342.4 MB, free: 4.742 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.833e-05/0.1357, allocations: 19.81 kB / 342.4 MB, free: 4.723 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.454e-05/0.1358, allocations: 34.17 kB / 342.4 MB, free: 4.691 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.1358, allocations: 0 / 342.4 MB, free: 4.691 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.1358, allocations: 4 kB / 342.4 MB, free: 4.688 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.1358, allocations: 4 kB / 342.4 MB, free: 4.684 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001724/0.1375, allocations: 0.901 MB / 343.3 MB, free: 3.719 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.1376, allocations: 0 / 343.3 MB, free: 3.719 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001592/0.1392, allocations: 227.7 kB / 343.5 MB, free: 3.496 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.1392, allocations: 0 / 343.5 MB, free: 3.496 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.575e-05/0.1392, allocations: 8 kB / 343.6 MB, free: 3.488 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004399/0.1436, allocations: 3.416 MB / 347 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1436, allocations: 0 / 347 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001472/0.1451, allocations: 0.5943 MB / 347.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.062e-05/0.1452, allocations: 104.8 kB / 347.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.074e-05/0.1452, allocations: 4 kB / 347.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003483/0.1456, allocations: 44.02 kB / 347.7 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.774e-05/0.1457, allocations: 31.91 kB / 347.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.146e-05/0.1457, allocations: 7.984 kB / 347.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001537/0.1459, allocations: 172.5 kB / 347.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1459, allocations: 0 / 347.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004638/0.1464, allocations: 79.84 kB / 348 MB, free: 14.73 MB / 302.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.001795/0.1482, allocations: 1.143 MB / 349.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002444/0.1506, allocations: 0.5458 MB / 349.7 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.1506, allocations: 0 / 349.7 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001879/0.1525, allocations: 351.8 kB / 350 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004462/0.153, allocations: 48.28 kB / 350.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005767/0.1588, allocations: 3.129 MB / 353.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.1591, allocations: 0.7519 MB / 354 MB, free: 8.582 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001424/0.1593, allocations: 25.89 kB / 354 MB, free: 8.559 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001447/0.1594, allocations: 87.41 kB / 354.1 MB, free: 8.473 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1594, allocations: 0 / 354.1 MB, free: 8.473 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02643/0.1859, allocations: 6.232 MB / 360.3 MB, free: 2.188 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.23, allocations: 4.469 kB / 360.3 MB, free: 2.184 MB / 302.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