Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",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.001226/0.001226, allocations: 90.25 kB / 16.65 MB, free: 6.535 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.001646/0.001647, allocations: 174.3 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.511/1.511, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003669/0.000367, allocations: 4 kB / 301.5 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1079, allocations: 50.42 MB / 352 MB, free: 3.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.004826/0.1127, allocations: 3.586 MB / 355.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00292/0.1157, allocations: 1.391 MB / 356.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005794/0.1163, allocations: 11.94 kB / 356.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009927/0.1173, allocations: 227.1 kB / 357.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008889/0.1182, allocations: 234.2 kB / 357.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008578/0.1191, allocations: 247.6 kB / 357.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001058/0.1202, allocations: 0.6812 MB / 358.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003459/0.1205, allocations: 149.7 kB / 358.5 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005157/0.1211, allocations: 239 kB / 358.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005039/0.1216, allocations: 270.8 kB / 359 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000117/0.1217, allocations: 24 kB / 359 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003127/0.122, allocations: 63.91 kB / 359 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001671/0.1222, allocations: 119.5 kB / 359.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003874/0.1226, allocations: 296.1 kB / 359.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007966/0.1234, allocations: 0.646 MB / 360.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.1234, allocations: 4 kB / 360.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.1234, allocations: 0 / 360.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.726e-05/0.1235, allocations: 0 / 360.1 MB, free: 11.16 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.00192/0.1254, allocations: 0.852 MB / 361 MB, free: 10.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.1254, allocations: 8.031 kB / 361 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001531/0.1256, allocations: 82.7 kB / 361 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001774/0.1258, allocations: 68.09 kB / 361.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007253/0.1265, allocations: 406.8 kB / 361.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.848e-05/0.1266, allocations: 29.38 kB / 361.5 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.571e-05/0.1266, allocations: 43.94 kB / 361.6 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008528/0.1275, allocations: 445.5 kB / 362 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.1275, allocations: 0 / 362 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.514e-05/0.1276, allocations: 20 kB / 362 MB, free: 9.098 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.384e-05/0.1276, allocations: 12 kB / 362 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006882/0.1283, allocations: 315.8 kB / 362.3 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002627/0.131, allocations: 1.718 MB / 364.1 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000713/0.1317, allocations: 378.2 kB / 364.4 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003426/0.132, allocations: 184.8 kB / 364.6 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.102e-05/0.1321, allocations: 11.98 kB / 364.6 MB, free: 6.383 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004834/0.1326, allocations: 266.3 kB / 364.9 MB, free: 6.094 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.964e-06/0.1326, allocations: 0 / 364.9 MB, free: 6.094 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002271/0.1349, allocations: 1.033 MB / 365.9 MB, free: 4.969 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.135, allocations: 191.9 kB / 366.1 MB, free: 4.738 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006562/0.1357, allocations: 0.494 MB / 366.6 MB, free: 4.234 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.436e-05/0.1357, allocations: 37.7 kB / 366.6 MB, free: 4.191 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002102/0.1359, allocations: 252.5 kB / 366.9 MB, free: 3.938 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.1361, allocations: 126.2 kB / 367 MB, free: 3.812 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.246e-05/0.1361, allocations: 37.7 kB / 367 MB, free: 3.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.1363, allocations: 358.8 kB / 367.4 MB, free: 3.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002695/0.1366, allocations: 124.8 kB / 367.5 MB, free: 3.289 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003347/0.1369, allocations: 225.1 kB / 367.7 MB, free: 3.039 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005051/0.1374, allocations: 273.2 kB / 368 MB, free: 2.762 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.1374, allocations: 0 / 368 MB, free: 2.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008729/0.1383, allocations: 480.7 kB / 368.5 MB, free: 2.273 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.1384, allocations: 4 kB / 368.5 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.1384, allocations: 8.094 kB / 368.5 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005442/0.1389, allocations: 155.3 kB / 368.6 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002344/0.1392, allocations: 55.84 kB / 368.7 MB, free: 2.043 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1888/0.328, allocations: 5.945 MB / 374.6 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005138/0.3286, allocations: 61.33 kB / 374.7 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.812e-05/0.3287, allocations: 17.41 kB / 374.7 MB, free: 19.93 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.0003339/0.329, allocations: 185.1 kB / 374.9 MB, free: 19.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.3291, allocations: 50.53 kB / 374.9 MB, free: 19.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001502/0.3293, allocations: 63.11 kB / 375 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.3293, allocations: 2.719 kB / 375 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.3293, allocations: 5.484 kB / 375 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.3293, allocations: 2.297 kB / 375 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006876/0.33, allocations: 497.7 kB / 375.5 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.33, allocations: 2.312 kB / 375.5 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001543/0.3302, allocations: 28.81 kB / 375.5 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000501/0.3307, allocations: 158.7 kB / 375.7 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.401e-05/0.3308, allocations: 8.578 kB / 375.7 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003942/0.3347, allocations: 5.811 MB / 381.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3347, allocations: 0 / 381.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001222/0.336, allocations: 0.5113 MB / 382 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000239/0.3362, allocations: 163.4 kB / 382.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.89e-05/0.3363, allocations: 8.484 kB / 382.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003218/0.3366, allocations: 39.12 kB / 382.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001722/0.3368, allocations: 57.2 kB / 382.3 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.553e-05/0.3369, allocations: 9.484 kB / 382.3 MB, free: 14.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005204/0.3374, allocations: 361.9 kB / 382.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3374, allocations: 0 / 382.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009273/0.3383, allocations: 173.3 kB / 382.8 MB, free: 14.04 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.00216/0.3405, allocations: 1.38 MB / 384.2 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.3417, allocations: 0.802 MB / 385 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.3417, allocations: 1.125 kB / 385 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006671/0.3424, allocations: 0.6584 MB / 385.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006709/0.343, allocations: 105.2 kB / 385.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006632/0.3497, allocations: 4.541 MB / 390.3 MB, free: 9.434 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.3501, allocations: 0.8606 MB / 391.2 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002467/0.3504, allocations: 56.72 kB / 391.2 MB, free: 8.711 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002062/0.3506, allocations: 173.2 kB / 391.4 MB, free: 8.578 MB / 302.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3506, allocations: 0 / 391.4 MB, free: 8.578 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03087/0.3815, allocations: 12.96 MB / 404.3 MB, free: 2.461 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002076/0.3817, allocations: 295.9 kB / 404.6 MB, free: 2.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.252/2.634, allocations: 0 / 404.6 MB, free: 2.07 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/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_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches