Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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.CharacteristicThyristors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001157/0.001161, allocations: 102.8 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.001199/0.001199, 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.417/1.417, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 54.75 kB / 307 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09818/0.09952, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.006774/0.1063, allocations: 3.997 MB / 361.6 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003254/0.1096, allocations: 1.617 MB / 363.2 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004481/0.1101, allocations: 11.94 kB / 363.2 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009125/0.111, allocations: 254.8 kB / 363.4 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009621/0.112, allocations: 305.6 kB / 363.7 MB, free: 7.809 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008375/0.1129, allocations: 263.4 kB / 364 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001046/0.1139, allocations: 0.7202 MB / 364.7 MB, free: 6.828 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003924/0.1143, allocations: 177.1 kB / 364.9 MB, free: 6.645 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005968/0.1149, allocations: 283 kB / 365.2 MB, free: 6.367 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005145/0.1155, allocations: 302.7 kB / 365.5 MB, free: 6.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001567/0.1156, allocations: 52 kB / 365.5 MB, free: 6.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003316/0.116, allocations: 99.97 kB / 365.6 MB, free: 5.922 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001957/0.1162, allocations: 143.5 kB / 365.8 MB, free: 5.781 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003691/0.1166, allocations: 306.5 kB / 366.1 MB, free: 5.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008376/0.1174, allocations: 0.7046 MB / 366.8 MB, free: 4.773 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1174, allocations: 0 / 366.8 MB, free: 4.773 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.1174, allocations: 8 kB / 366.8 MB, free: 4.766 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.552e-05/0.1175, allocations: 3.938 kB / 366.8 MB, free: 4.762 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001953/0.1194, allocations: 0.9413 MB / 367.7 MB, free: 3.762 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.1195, allocations: 8.031 kB / 367.7 MB, free: 3.754 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001101/0.1196, allocations: 78.72 kB / 367.8 MB, free: 3.668 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002743/0.1199, allocations: 80.08 kB / 367.9 MB, free: 3.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006089/0.1205, allocations: 410.8 kB / 368.3 MB, free: 3.148 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.763e-05/0.1205, allocations: 33.38 kB / 368.3 MB, free: 3.117 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.569e-05/0.1206, allocations: 43.94 kB / 368.4 MB, free: 3.074 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007908/0.1214, allocations: 441.5 kB / 368.8 MB, free: 2.617 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.1214, allocations: 0 / 368.8 MB, free: 2.617 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.78e-05/0.1215, allocations: 20 kB / 368.8 MB, free: 2.598 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.1215, allocations: 8 kB / 368.8 MB, free: 2.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006432/0.1222, allocations: 315.8 kB / 369.1 MB, free: 2.281 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002554/0.1247, allocations: 1.714 MB / 370.8 MB, free: 484 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006892/0.1254, allocations: 372 kB / 371.2 MB, free: 104 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1658/0.2912, allocations: 180.3 kB / 371.4 MB, free: 20.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.578e-05/0.2913, allocations: 4.844 kB / 371.4 MB, free: 20.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006039/0.2919, allocations: 258.5 kB / 371.6 MB, free: 20.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.986e-06/0.292, allocations: 2.062 kB / 371.6 MB, free: 20.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002349/0.2943, allocations: 1.018 MB / 372.7 MB, free: 19.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.89e-05/0.2944, allocations: 190.7 kB / 372.8 MB, free: 19.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006553/0.2951, allocations: 0.5103 MB / 373.3 MB, free: 19.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.08e-05/0.2951, allocations: 37.73 kB / 373.4 MB, free: 19.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.2953, allocations: 250.8 kB / 373.6 MB, free: 19.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.145e-05/0.2954, allocations: 125.8 kB / 373.8 MB, free: 19.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001313/0.2955, allocations: 79.73 kB / 373.8 MB, free: 19.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.31e-05/0.2956, allocations: 359 kB / 374.2 MB, free: 18.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002599/0.2959, allocations: 123.5 kB / 374.3 MB, free: 18.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002933/0.2962, allocations: 209.6 kB / 374.5 MB, free: 18.7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004602/0.2966, allocations: 270.2 kB / 374.8 MB, free: 18.56 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.2966, allocations: 0 / 374.8 MB, free: 18.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000895/0.2975, allocations: 481.5 kB / 375.2 MB, free: 18.33 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.2976, allocations: 5.594 kB / 375.2 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.2976, allocations: 6.219 kB / 375.3 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000537/0.2981, allocations: 158.4 kB / 375.4 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002378/0.2984, allocations: 48.23 kB / 375.5 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00393/0.3023, allocations: 6.643 MB / 382.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004207/0.3028, allocations: 56.34 kB / 382.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.139e-05/0.3028, allocations: 14.64 kB / 382.2 MB, free: 11.77 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,IdealGTOThyristor2.off,IdealThyristor2.off,$PRE.IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEvent,IdealGTOThyristor1.off,IdealThyristor1.fire,IdealThyristor1.off,$PRE.IdealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002816/0.3031, allocations: 189 kB / 382.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.532e-05/0.3032, allocations: 53.91 kB / 382.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000113/0.3033, allocations: 57.53 kB / 382.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.3033, allocations: 4.562 kB / 382.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.3033, allocations: 0 / 382.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.3033, allocations: 6.203 kB / 382.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005368/0.3039, allocations: 498.8 kB / 383 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.3039, allocations: 0 / 383 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.3041, allocations: 37.75 kB / 383 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003879/0.3044, allocations: 150.7 kB / 383.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.464e-05/0.3045, allocations: 10.53 kB / 383.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003634/0.3081, allocations: 6.371 MB / 389.5 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.3081, allocations: 3.938 kB / 389.5 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.3092, allocations: 0.5065 MB / 390 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001715/0.3094, allocations: 157.8 kB / 390.2 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.016e-05/0.3094, allocations: 12.59 kB / 390.2 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000288/0.3097, allocations: 28.97 kB / 390.2 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.3099, allocations: 57.84 kB / 390.3 MB, free: 4.508 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.19e-05/0.3099, allocations: 8.188 kB / 390.3 MB, free: 4.508 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004195/0.3104, allocations: 369.1 kB / 390.7 MB, free: 4.344 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3104, allocations: 0 / 390.7 MB, free: 4.344 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008116/0.3112, allocations: 169.2 kB / 390.8 MB, free: 4.312 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001947/0.3131, allocations: 1.379 MB / 392.2 MB, free: 3.402 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001187/0.3144, allocations: 0.8121 MB / 393 MB, free: 2.816 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.3144, allocations: 5.031 kB / 393 MB, free: 2.812 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000604/0.315, allocations: 0.6583 MB / 393.7 MB, free: 2.277 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005632/0.3156, allocations: 121.7 kB / 393.8 MB, free: 2.227 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006184/0.3218, allocations: 4.381 MB / 398.2 MB, free: 15.7 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000504/0.3223, allocations: 0.8594 MB / 399 MB, free: 14.99 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002601/0.3226, allocations: 52.67 kB / 399.1 MB, free: 14.97 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002284/0.3228, allocations: 171.3 kB / 399.2 MB, free: 14.84 MB / 318.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3228, allocations: 0 / 399.2 MB, free: 14.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0423/0.3651, allocations: 14.24 MB / 413.5 MB, free: 5.918 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/11.94, allocations: 11.06 kB / 413.5 MB, free: 5.91 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0024 Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches