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.001637/0.001637, allocations: 103.6 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001923/0.001923, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001452, allocations: 63.58 kB / 307 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1023, allocations: 50.54 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.0051/0.1074, allocations: 2.755 MB / 360.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001754/0.1092, allocations: 0.7518 MB / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002521/0.1095, allocations: 8 kB / 361.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001884/0.1097, allocations: 43.56 kB / 361.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002601/0.11, allocations: 83.2 kB / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004522/0.1104, allocations: 111.8 kB / 361.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005148/0.1109, allocations: 386.5 kB / 361.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002267/0.1112, allocations: 93.77 kB / 361.8 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003661/0.1116, allocations: 155.5 kB / 362 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002713/0.1118, allocations: 167.3 kB / 362.1 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.151e-05/0.1119, allocations: 36 kB / 362.1 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001132/0.112, allocations: 48 kB / 362.2 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.962e-05/0.1121, allocations: 71.73 kB / 362.3 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001552/0.1123, allocations: 159.1 kB / 362.4 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003835/0.1127, allocations: 367 kB / 362.8 MB, free: 8.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1127, allocations: 0 / 362.8 MB, free: 8.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.1127, allocations: 0 / 362.8 MB, free: 8.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.706e-05/0.1127, allocations: 0 / 362.8 MB, free: 8.75 MB / 302.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.001668/0.1144, allocations: 0.6881 MB / 363.5 MB, free: 8.008 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.1145, allocations: 8.031 kB / 363.5 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.183e-05/0.1146, allocations: 58.73 kB / 363.5 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002036/0.1148, allocations: 40.55 kB / 363.6 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000364/0.1152, allocations: 274.7 kB / 363.8 MB, free: 7.582 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.45e-05/0.1152, allocations: 12.81 kB / 363.9 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.496e-05/0.1153, allocations: 28.36 kB / 363.9 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007836/0.116, allocations: 309.9 kB / 364.2 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.1161, allocations: 3.938 kB / 364.2 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.215e-05/0.1161, allocations: 8 kB / 364.2 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.1161, allocations: 4 kB / 364.2 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.1171, allocations: 301.5 kB / 364.5 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001815/0.119, allocations: 0.9724 MB / 365.5 MB, free: 5.879 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002995/0.122, allocations: 0.4943 MB / 366 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006745/0.1227, allocations: 212.7 kB / 366.2 MB, free: 5.164 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.493e-05/0.1227, allocations: 4 kB / 366.2 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007072/0.1234, allocations: 248.1 kB / 366.4 MB, free: 4.902 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.064e-06/0.1234, allocations: 0 / 366.4 MB, free: 4.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001614/0.1251, allocations: 479.8 kB / 366.9 MB, free: 4.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.4e-05/0.1251, allocations: 106.8 kB / 367 MB, free: 4.301 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00026/0.1254, allocations: 233 kB / 367.2 MB, free: 4.059 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.544e-05/0.1255, allocations: 37.7 kB / 367.3 MB, free: 4.016 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.1256, allocations: 160.2 kB / 367.4 MB, free: 3.855 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.393e-05/0.1257, allocations: 71 kB / 367.5 MB, free: 3.785 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.1258, allocations: 45.92 kB / 367.5 MB, free: 3.734 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.1259, allocations: 334.8 kB / 367.8 MB, free: 3.398 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005164/0.1264, allocations: 148.3 kB / 368 MB, free: 3.254 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005164/0.127, allocations: 184.2 kB / 368.2 MB, free: 3.062 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009596/0.1279, allocations: 312.7 kB / 368.5 MB, free: 2.742 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1279, allocations: 4 kB / 368.5 MB, free: 2.738 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001188/0.1291, allocations: 414.8 kB / 368.9 MB, free: 2.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.799e-05/0.1292, allocations: 29.7 kB / 368.9 MB, free: 2.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.976e-06/0.1292, allocations: 4 kB / 368.9 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.1292, allocations: 3.938 kB / 368.9 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001851/0.1311, allocations: 271.7 kB / 369.2 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1472/0.2783, allocations: 3.438 MB / 372.6 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005076/0.2788, allocations: 53.67 kB / 372.7 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.638e-05/0.2789, allocations: 12.09 kB / 372.7 MB, free: 18.68 MB / 302.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.0001762/0.2791, allocations: 143.9 kB / 372.8 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.062e-05/0.2791, allocations: 22.78 kB / 372.9 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.663e-05/0.2792, allocations: 38.31 kB / 372.9 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.2792, allocations: 2.656 kB / 372.9 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.2792, allocations: 4.766 kB / 372.9 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.2792, allocations: 1.875 kB / 372.9 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001837/0.2811, allocations: 0.9036 MB / 373.8 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.2811, allocations: 2.609 kB / 373.8 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001826/0.2829, allocations: 262.1 kB / 374.1 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.283, allocations: 1.156 kB / 374.1 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.831e-05/0.283, allocations: 6.078 kB / 374.1 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004223/0.2872, allocations: 3.442 MB / 377.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.2872, allocations: 5.531 kB / 377.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001672/0.2889, allocations: 0.612 MB / 378.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.717e-05/0.289, allocations: 103.5 kB / 378.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.741e-05/0.289, allocations: 7.656 kB / 378.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003618/0.2894, allocations: 42.12 kB / 378.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.925e-05/0.2895, allocations: 28.73 kB / 378.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.333e-05/0.2895, allocations: 13.34 kB / 378.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001618/0.2897, allocations: 170.7 kB / 378.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2897, allocations: 1.125 kB / 378.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004802/0.2902, allocations: 88.91 kB / 378.6 MB, free: 14.88 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.001702/0.2919, allocations: 1.146 MB / 379.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002565/0.2945, allocations: 0.5868 MB / 380.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.2945, allocations: 0 / 380.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002052/0.2966, allocations: 388.3 kB / 380.7 MB, free: 13.87 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004298/0.297, allocations: 36.61 kB / 380.7 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005196/0.3022, allocations: 3.169 MB / 383.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001616/0.3024, allocations: 0.7519 MB / 384.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001467/0.3025, allocations: 26.92 kB / 384.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.3027, allocations: 83.88 kB / 384.8 MB, free: 11.13 MB / 302.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3027, allocations: 0 / 384.8 MB, free: 11.13 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02615/0.3288, allocations: 6.337 MB / 391.1 MB, free: 9.324 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.48, allocations: 5.922 kB / 391.1 MB, free: 9.32 MB / 302.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