Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_3_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.0008175/0.0008176, allocations: 92.16 kB / 17.3 MB, free: 6.344 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.0009894/0.0009895, allocations: 183.5 kB / 18.21 MB, free: 5.527 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.448/1.448, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0004964/0.0004965, allocations: 16 kB / 281.5 MB, free: 3.328 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09588/0.09638, allocations: 47.59 MB / 329.1 MB, free: 3.664 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.003948/0.1004, allocations: 3.552 MB / 332.6 MB, free: 92 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002202/0.1026, allocations: 1.326 MB / 333.9 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002113/0.1028, allocations: 4 kB / 333.9 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006145/0.1035, allocations: 227.1 kB / 334.2 MB, free: 14.53 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004574/0.1039, allocations: 226.7 kB / 334.4 MB, free: 14.31 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005542/0.1045, allocations: 235.6 kB / 334.6 MB, free: 14.08 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006278/0.1051, allocations: 0.6851 MB / 335.3 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002511/0.1054, allocations: 153.4 kB / 335.5 MB, free: 13.23 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002976/0.1057, allocations: 235 kB / 335.7 MB, free: 13 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002942/0.106, allocations: 270.7 kB / 335.9 MB, free: 12.74 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.986e-05/0.1061, allocations: 24 kB / 336 MB, free: 12.71 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001702/0.1062, allocations: 67.97 kB / 336 MB, free: 12.65 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.1064, allocations: 127.5 kB / 336.2 MB, free: 12.52 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000243/0.1066, allocations: 284.2 kB / 336.4 MB, free: 12.24 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005638/0.1072, allocations: 0.6499 MB / 337.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1072, allocations: 0 / 337.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.476e-06/0.1072, allocations: 0 / 337.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.1072, allocations: 3.938 kB / 337.1 MB, free: 11.58 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001333/0.1086, allocations: 0.8558 MB / 337.9 MB, free: 10.67 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.1086, allocations: 12.03 kB / 338 MB, free: 10.66 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.585e-05/0.1087, allocations: 78.72 kB / 338 MB, free: 10.57 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.136e-05/0.1088, allocations: 68.09 kB / 338.1 MB, free: 10.5 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004492/0.1092, allocations: 406.8 kB / 338.5 MB, free: 10.07 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.688e-05/0.1093, allocations: 33.12 kB / 338.5 MB, free: 10.04 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.621e-05/0.1093, allocations: 36 kB / 338.6 MB, free: 10 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006839/0.11, allocations: 445.5 kB / 339 MB, free: 9.543 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.1101, allocations: 0 / 339 MB, free: 9.543 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.086e-05/0.1101, allocations: 16 kB / 339 MB, free: 9.527 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.79e-05/0.1101, allocations: 12 kB / 339 MB, free: 9.516 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000579/0.1107, allocations: 319.8 kB / 339.3 MB, free: 9.203 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002212/0.1129, allocations: 1.726 MB / 341.1 MB, free: 7.383 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006197/0.1136, allocations: 363.1 kB / 341.4 MB, free: 7.02 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003096/0.1139, allocations: 196.5 kB / 341.6 MB, free: 6.824 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.711e-05/0.1139, allocations: 4 kB / 341.6 MB, free: 6.82 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004238/0.1144, allocations: 262.4 kB / 341.9 MB, free: 6.535 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 1.623e-06/0.1144, allocations: 3.938 kB / 341.9 MB, free: 6.531 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002082/0.1165, allocations: 1.028 MB / 342.9 MB, free: 5.41 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.034e-05/0.1166, allocations: 191.9 kB / 343.1 MB, free: 5.18 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005249/0.1171, allocations: 497.9 kB / 343.6 MB, free: 4.676 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.985e-05/0.1171, allocations: 37.7 kB / 343.6 MB, free: 4.633 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/0.1173, allocations: 252.4 kB / 343.9 MB, free: 4.383 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.492e-05/0.1174, allocations: 130.2 kB / 344 MB, free: 4.254 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.545e-05/0.1175, allocations: 37.7 kB / 344 MB, free: 4.211 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.1176, allocations: 362.8 kB / 344.4 MB, free: 3.848 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002403/0.1179, allocations: 120.8 kB / 344.5 MB, free: 3.727 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003053/0.1182, allocations: 221.2 kB / 344.7 MB, free: 3.477 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004497/0.1186, allocations: 273.3 kB / 345 MB, free: 3.199 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1187, allocations: 4 kB / 345 MB, free: 3.195 MB / 286.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000783/0.1195, allocations: 484.7 kB / 345.5 MB, free: 2.703 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.1195, allocations: 4 kB / 345.5 MB, free: 2.699 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.1195, allocations: 0 / 345.5 MB, free: 2.699 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004874/0.12, allocations: 167.4 kB / 345.6 MB, free: 2.523 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002134/0.1202, allocations: 43.91 kB / 345.7 MB, free: 2.48 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004579/0.1248, allocations: 5.962 MB / 351.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004242/0.1252, allocations: 67.66 kB / 351.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.411e-05/0.1253, allocations: 16 kB / 351.7 MB, free: 11.91 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.0002633/0.1256, allocations: 184 kB / 351.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.323e-05/0.1256, allocations: 51.38 kB / 351.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001156/0.1258, allocations: 68.75 kB / 352 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.1258, allocations: 7.938 kB / 352 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.1258, allocations: 0 / 352 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.1258, allocations: 0 / 352 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004844/0.1263, allocations: 489.2 kB / 352.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.1263, allocations: 7.938 kB / 352.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000133/0.1264, allocations: 27.98 kB / 352.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004058/0.1268, allocations: 159.3 kB / 352.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.47e-05/0.1269, allocations: 12 kB / 352.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004317/0.1312, allocations: 5.8 MB / 358.5 MB, free: 4.508 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1312, allocations: 0 / 358.5 MB, free: 4.508 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.1323, allocations: 0.5163 MB / 359 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002188/0.1325, allocations: 160.4 kB / 359.2 MB, free: 3.785 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.243e-05/0.1326, allocations: 8 kB / 359.2 MB, free: 3.777 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002898/0.1329, allocations: 39.97 kB / 359.2 MB, free: 3.738 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001508/0.1331, allocations: 51.92 kB / 359.3 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.324e-05/0.1331, allocations: 11.98 kB / 359.3 MB, free: 3.676 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004055/0.1335, allocations: 355.1 kB / 359.6 MB, free: 3.332 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1335, allocations: 4 kB / 359.6 MB, free: 3.328 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000759/0.1343, allocations: 175.7 kB / 359.8 MB, free: 3.156 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.0021/0.1364, allocations: 1.37 MB / 361.2 MB, free: 1.762 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001151/0.1376, allocations: 0.8034 MB / 362 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.1376, allocations: 0 / 362 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006933/0.1383, allocations: 0.6588 MB / 362.6 MB, free: 200 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006114/0.1389, allocations: 109.8 kB / 362.7 MB, free: 92 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00637/0.1453, allocations: 4.544 MB / 367.3 MB, free: 11.41 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005177/0.1458, allocations: 0.8631 MB / 368.1 MB, free: 10.53 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002313/0.1461, allocations: 48.17 kB / 368.2 MB, free: 10.48 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002115/0.1463, allocations: 171.3 kB / 368.4 MB, free: 10.31 MB / 318.1 MB Notification: Performance of SimCode: time 1.393e-06/0.1463, allocations: 4 kB / 368.4 MB, free: 10.31 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1769/0.3232, allocations: 12.96 MB / 381.3 MB, free: 50.27 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001784/0.3234, allocations: 286.8 kB / 381.6 MB, free: 49.89 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.111/2.434, allocations: 0 / 381.6 MB, free: 49.89 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches