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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007889/0.0007889, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008569/0.0008569, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8704/0.8704, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 324.5 MB, free: 15.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.852e-05/2.017e-05, allocations: 3.266 kB / 324.5 MB, free: 15.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.003955/0.003975, allocations: 3.664 MB / 328.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002072/0.006047, allocations: 1.565 MB / 329.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002021/0.006249, allocations: 7.938 kB / 329.8 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006042/0.006853, allocations: 262.7 kB / 330 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004726/0.007326, allocations: 309.9 kB / 330.3 MB, free: 9.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004245/0.00775, allocations: 271.2 kB / 330.6 MB, free: 9.645 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004874/0.008238, allocations: 0.751 MB / 331.3 MB, free: 8.891 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.008421, allocations: 117.5 kB / 331.5 MB, free: 8.777 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003479/0.008769, allocations: 419 kB / 331.9 MB, free: 8.367 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002135/0.008982, allocations: 235.3 kB / 332.1 MB, free: 8.137 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.904e-05/0.009041, allocations: 56 kB / 332.2 MB, free: 8.082 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.009186, allocations: 107.8 kB / 332.3 MB, free: 7.977 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001039/0.00929, allocations: 155.4 kB / 332.4 MB, free: 7.824 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001441/0.009434, allocations: 199.5 kB / 332.6 MB, free: 7.629 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007902/0.01022, allocations: 0.7398 MB / 333.3 MB, free: 6.887 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.754e-06/0.01023, allocations: 0 / 333.3 MB, free: 6.887 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.01023, allocations: 0 / 333.3 MB, free: 6.887 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.01023, allocations: 0 / 333.3 MB, free: 6.887 MB / 298.7 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.0009494/0.01118, allocations: 0.881 MB / 334.2 MB, free: 5.969 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.01122, allocations: 11.98 kB / 334.2 MB, free: 5.957 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.696e-05/0.01128, allocations: 78.7 kB / 334.3 MB, free: 5.871 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.01141, allocations: 80.52 kB / 334.4 MB, free: 5.793 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003771/0.01179, allocations: 355.5 kB / 334.7 MB, free: 5.418 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.01181, allocations: 33.38 kB / 334.8 MB, free: 5.387 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.619e-05/0.01185, allocations: 36.38 kB / 334.8 MB, free: 5.352 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004976/0.01235, allocations: 0.5313 MB / 335.3 MB, free: 4.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.01236, allocations: 192 / 335.3 MB, free: 4.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.9e-05/0.01239, allocations: 24.12 kB / 335.4 MB, free: 4.746 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.0124, allocations: 8 kB / 335.4 MB, free: 4.738 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003742/0.01277, allocations: 311.8 kB / 335.7 MB, free: 4.438 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001455/0.01423, allocations: 1.56 MB / 337.2 MB, free: 2.777 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004346/0.01466, allocations: 336 kB / 337.6 MB, free: 2.441 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001959/0.01486, allocations: 159.6 kB / 337.7 MB, free: 2.285 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.01488, allocations: 15.91 kB / 337.7 MB, free: 2.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000339/0.01522, allocations: 369.1 kB / 338.1 MB, free: 1.855 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 1.563e-06/0.01522, allocations: 0 / 338.1 MB, free: 1.855 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001203/0.01643, allocations: 0.7197 MB / 338.8 MB, free: 1.117 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.098e-05/0.01651, allocations: 158.2 kB / 339 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004149/0.01692, allocations: 0.5135 MB / 339.5 MB, free: 412 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.041e-05/0.01695, allocations: 37.7 kB / 339.5 MB, free: 368 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001634/0.01712, allocations: 256.8 kB / 339.8 MB, free: 108 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.918e-05/0.0172, allocations: 127 kB / 339.9 MB, free: 15.98 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003955/0.01759, allocations: 82.19 kB / 340 MB, free: 15.89 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.0177, allocations: 366.7 kB / 340.3 MB, free: 15.52 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001598/0.01786, allocations: 121 kB / 340.5 MB, free: 15.4 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002475/0.01811, allocations: 337.4 kB / 340.8 MB, free: 15.02 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003115/0.01842, allocations: 281.4 kB / 341.1 MB, free: 14.73 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.01843, allocations: 0 / 341.1 MB, free: 14.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005056/0.01893, allocations: 477 kB / 341.5 MB, free: 14.25 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.01895, allocations: 8 kB / 341.5 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.01896, allocations: 0 / 341.5 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003193/0.01927, allocations: 159.4 kB / 341.7 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.01939, allocations: 51.91 kB / 341.7 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003523/0.02291, allocations: 6.199 MB / 347.9 MB, free: 7.371 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001697/0.02308, allocations: 51.75 kB / 348 MB, free: 7.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.0231, allocations: 12 kB / 348 MB, free: 7.309 MB / 314.7 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.0001539/0.02325, allocations: 201.3 kB / 348.2 MB, free: 7.105 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.387e-05/0.02329, allocations: 51.67 kB / 348.2 MB, free: 7.055 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005886/0.02388, allocations: 0.4971 MB / 348.7 MB, free: 6.539 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.02388, allocations: 4 kB / 348.7 MB, free: 6.535 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-06/0.02389, allocations: 4 kB / 348.7 MB, free: 6.531 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.02389, allocations: 0 / 348.7 MB, free: 6.531 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003085/0.0242, allocations: 412.4 kB / 349.2 MB, free: 6.086 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.0242, allocations: 0 / 349.2 MB, free: 6.086 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.894e-05/0.02427, allocations: 39.78 kB / 349.2 MB, free: 6.047 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002343/0.0245, allocations: 155.5 kB / 349.3 MB, free: 5.883 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.02452, allocations: 11.98 kB / 349.4 MB, free: 5.871 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003168/0.02769, allocations: 5.915 MB / 355.3 MB, free: 15.5 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.02769, allocations: 8.188 kB / 355.3 MB, free: 15.49 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005685/0.02826, allocations: 0.5074 MB / 355.8 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/0.02837, allocations: 79.56 kB / 355.9 MB, free: 14.87 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.424e-05/0.0284, allocations: 11.98 kB / 355.9 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.02853, allocations: 27.98 kB / 355.9 MB, free: 14.83 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.914e-05/0.02863, allocations: 59.89 kB / 356 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.256e-05/0.02865, allocations: 12 kB / 356 MB, free: 14.76 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002785/0.02893, allocations: 367.1 kB / 356.3 MB, free: 14.4 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.02893, allocations: 0 / 356.3 MB, free: 14.4 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004865/0.02942, allocations: 175.7 kB / 356.5 MB, free: 14.23 MB / 330.7 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,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 18 * 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.001446/0.03086, allocations: 1.407 MB / 357.9 MB, free: 12.94 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007042/0.03157, allocations: 0.7833 MB / 358.7 MB, free: 12.1 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.03157, allocations: 0 / 358.7 MB, free: 12.1 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003978/0.03197, allocations: 0.6469 MB / 359.3 MB, free: 11.4 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003348/0.0323, allocations: 121.7 kB / 359.5 MB, free: 11.29 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004173/0.03648, allocations: 4.3 MB / 363.8 MB, free: 6.863 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001634/0.03664, allocations: 271.4 kB / 364 MB, free: 6.57 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001192/0.03676, allocations: 48.19 kB / 364.1 MB, free: 6.52 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001575/0.03692, allocations: 172.4 kB / 364.2 MB, free: 6.348 MB / 330.7 MB Notification: Performance of SimCode: time 6.71e-07/0.03692, allocations: 0 / 364.2 MB, free: 6.348 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03349/0.0704, allocations: 15.51 MB / 379.7 MB, free: 6.973 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.93/8, allocations: 7.922 kB / 379.8 MB, free: 6.965 MB / 346.7 MB " [Timeout remaining time 652] (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.00118765 Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable IdealThyristor1.off in file Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv. Warning: Get data of variable IdealThyristor1.off from file Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv failed! Error: Could not read variable IdealThyristor2.off in file Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv. Warning: Get data of variable IdealThyristor2.off from file Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv failed! Error: Could not read variable booleanStep1.y in file Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv. Warning: Get data of variable booleanStep1.y from file Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.849218943156302]