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.001111/0.001111, allocations: 98.88 kB / 17.58 MB, free: 5.418 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.001042/0.001043, allocations: 191.9 kB / 18.51 MB, free: 4.5 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.461/1.461, 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.001304/0.001304, allocations: 52.42 kB / 280.7 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09525/0.09656, allocations: 46.64 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.0064/0.103, allocations: 3.923 MB / 331.3 MB, free: 440 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003079/0.1061, allocations: 1.341 MB / 332.6 MB, free: 15.08 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006079/0.1068, allocations: 11.94 kB / 332.7 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001067/0.1079, allocations: 254.8 kB / 332.9 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001063/0.109, allocations: 250.4 kB / 333.1 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008884/0.1099, allocations: 275.4 kB / 333.4 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001083/0.111, allocations: 0.7086 MB / 334.1 MB, free: 13.59 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003751/0.1114, allocations: 161.1 kB / 334.3 MB, free: 13.43 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005821/0.1119, allocations: 287 kB / 334.6 MB, free: 13.14 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005254/0.1125, allocations: 294.8 kB / 334.9 MB, free: 12.86 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001407/0.1126, allocations: 52 kB / 334.9 MB, free: 12.8 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002948/0.1129, allocations: 95.91 kB / 335 MB, free: 12.71 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001669/0.1131, allocations: 143.5 kB / 335.1 MB, free: 12.57 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004/0.1135, allocations: 302.4 kB / 335.4 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009242/0.1145, allocations: 0.6968 MB / 336.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.1145, allocations: 0 / 336.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1145, allocations: 0 / 336.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.75e-05/0.1145, allocations: 0 / 336.1 MB, free: 11.57 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.001941/0.1165, allocations: 0.9452 MB / 337.1 MB, free: 10.57 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.1165, allocations: 8.031 kB / 337.1 MB, free: 10.56 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001059/0.1166, allocations: 74.72 kB / 337.2 MB, free: 10.48 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001689/0.1168, allocations: 72.17 kB / 337.2 MB, free: 10.41 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000605/0.1174, allocations: 406.7 kB / 337.6 MB, free: 9.973 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.6e-05/0.1175, allocations: 29.38 kB / 337.6 MB, free: 9.945 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.447e-05/0.1175, allocations: 39.94 kB / 337.7 MB, free: 9.906 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007947/0.1183, allocations: 445.5 kB / 338.1 MB, free: 9.445 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/0.1184, allocations: 0 / 338.1 MB, free: 9.445 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.816e-05/0.1184, allocations: 16 kB / 338.1 MB, free: 9.43 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.1185, allocations: 8 kB / 338.1 MB, free: 9.422 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006287/0.1191, allocations: 319.8 kB / 338.5 MB, free: 9.109 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002562/0.1217, allocations: 1.71 MB / 340.2 MB, free: 7.305 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007074/0.1224, allocations: 362.9 kB / 340.5 MB, free: 6.941 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003125/0.1227, allocations: 184.6 kB / 340.7 MB, free: 6.758 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.119e-05/0.1228, allocations: 15.97 kB / 340.7 MB, free: 6.742 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004282/0.1232, allocations: 266.4 kB / 341 MB, free: 6.457 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 2.104e-06/0.1232, allocations: 0 / 341 MB, free: 6.457 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002248/0.1255, allocations: 1.017 MB / 342 MB, free: 5.348 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.1256, allocations: 187.9 kB / 342.2 MB, free: 5.121 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005999/0.1262, allocations: 0.4979 MB / 342.7 MB, free: 4.609 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.42e-05/0.1262, allocations: 33.64 kB / 342.7 MB, free: 4.57 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001871/0.1264, allocations: 252.4 kB / 343 MB, free: 4.32 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.1265, allocations: 126.3 kB / 343.1 MB, free: 4.195 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.1267, allocations: 82.03 kB / 343.2 MB, free: 4.109 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.1268, allocations: 362.8 kB / 343.5 MB, free: 3.746 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002501/0.1271, allocations: 120.8 kB / 343.6 MB, free: 3.625 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000332/0.1274, allocations: 213.2 kB / 343.8 MB, free: 3.383 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004785/0.1279, allocations: 265.3 kB / 344.1 MB, free: 3.113 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.1279, allocations: 4 kB / 344.1 MB, free: 3.109 MB / 286.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008408/0.1288, allocations: 476.9 kB / 344.6 MB, free: 2.625 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.1288, allocations: 11.98 kB / 344.6 MB, free: 2.613 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.1288, allocations: 0 / 344.6 MB, free: 2.613 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005294/0.1294, allocations: 155.3 kB / 344.7 MB, free: 2.449 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002186/0.1296, allocations: 47.84 kB / 344.8 MB, free: 2.402 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005322/0.1349, allocations: 6.651 MB / 351.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000469/0.1354, allocations: 51.56 kB / 351.5 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.472e-05/0.1355, allocations: 16 kB / 351.5 MB, free: 11.14 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.0003296/0.1358, allocations: 196.2 kB / 351.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/0.136, allocations: 51.38 kB / 351.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001539/0.1361, allocations: 60.75 kB / 351.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.1362, allocations: 7.938 kB / 351.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.1362, allocations: 0 / 351.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1362, allocations: 0 / 351.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006618/0.1368, allocations: 493 kB / 352.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-06/0.1369, allocations: 128 / 352.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001437/0.137, allocations: 35.92 kB / 352.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000441/0.1375, allocations: 159.3 kB / 352.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.341e-05/0.1375, allocations: 8 kB / 352.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004815/0.1423, allocations: 6.355 MB / 358.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.1424, allocations: 3.938 kB / 358.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001029/0.1434, allocations: 0.5047 MB / 359.3 MB, free: 2.621 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002418/0.1437, allocations: 164.3 kB / 359.5 MB, free: 2.441 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.081e-05/0.1438, allocations: 8 kB / 359.5 MB, free: 2.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002961/0.1441, allocations: 27.97 kB / 359.5 MB, free: 2.406 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001499/0.1442, allocations: 55.92 kB / 359.6 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.224e-05/0.1443, allocations: 16 kB / 359.6 MB, free: 2.336 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004343/0.1447, allocations: 359.1 kB / 360 MB, free: 1.984 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1447, allocations: 0 / 360 MB, free: 1.984 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008231/0.1455, allocations: 171.7 kB / 360.1 MB, free: 1.816 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.002215/0.1478, allocations: 1.368 MB / 361.5 MB, free: 432 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001364/0.1492, allocations: 0.8227 MB / 362.3 MB, free: 15.55 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.1492, allocations: 0 / 362.3 MB, free: 15.55 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007589/0.1499, allocations: 0.655 MB / 363 MB, free: 14.84 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006707/0.1506, allocations: 113.8 kB / 363.1 MB, free: 14.73 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006467/0.1571, allocations: 4.353 MB / 367.4 MB, free: 10.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004854/0.1576, allocations: 0.8634 MB / 368.3 MB, free: 9.363 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002525/0.1579, allocations: 44.17 kB / 368.3 MB, free: 9.32 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002431/0.1582, allocations: 171.4 kB / 368.5 MB, free: 9.152 MB / 318.1 MB Notification: Performance of SimCode: time 8.32e-07/0.1582, allocations: 3.938 kB / 368.5 MB, free: 9.148 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2242/0.3823, allocations: 14.13 MB / 382.6 MB, free: 54.02 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.89/12.27, allocations: 3.172 kB / 382.7 MB, free: 54.02 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches