Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001899/0.001899, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002794/0.002794, allocations: 216.5 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.453/1.453, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 51.91 kB / 377.8 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2586, allocations: 53.35 MB / 431.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.006837/0.2654, allocations: 4.041 MB / 435.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003747/0.2692, allocations: 1.638 MB / 436.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004565/0.2696, allocations: 7.938 kB / 436.8 MB, free: 1.141 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009431/0.2706, allocations: 258.7 kB / 437.1 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008581/0.2714, allocations: 314.1 kB / 437.4 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000768/0.2722, allocations: 262.5 kB / 437.6 MB, free: 332 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001045/0.2732, allocations: 0.7318 MB / 438.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003221/0.2736, allocations: 118.4 kB / 438.5 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004973/0.2741, allocations: 291 kB / 438.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004385/0.2745, allocations: 310.7 kB / 439.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.723e-05/0.2746, allocations: 52 kB / 439.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002795/0.2749, allocations: 111.9 kB / 439.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001757/0.275, allocations: 143.5 kB / 439.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003337/0.2754, allocations: 306.3 kB / 439.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009498/0.2763, allocations: 0.7191 MB / 440.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.2763, allocations: 0 / 440.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2763, allocations: 0 / 440.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.2763, allocations: 0 / 440.4 MB, free: 13.56 MB / 350.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.001807/0.2781, allocations: 0.8888 MB / 441.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.2782, allocations: 12.03 kB / 441.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.513e-05/0.2783, allocations: 82.7 kB / 441.4 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002204/0.2785, allocations: 84.45 kB / 441.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005615/0.2791, allocations: 361.2 kB / 441.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.521e-05/0.2791, allocations: 33.38 kB / 441.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.393e-05/0.2792, allocations: 47.92 kB / 441.9 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007389/0.2799, allocations: 437.5 kB / 442.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.2799, allocations: 3.938 kB / 442.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.005e-05/0.28, allocations: 16 kB / 442.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/0.28, allocations: 12 kB / 442.4 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006199/0.2806, allocations: 319.8 kB / 442.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00255/0.2832, allocations: 1.653 MB / 444.3 MB, free: 9.449 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006761/0.2838, allocations: 335.7 kB / 444.6 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003077/0.2841, allocations: 152.8 kB / 444.8 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.85e-05/0.2842, allocations: 4 kB / 444.8 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004653/0.2846, allocations: 266.3 kB / 445.1 MB, free: 8.668 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.804e-06/0.2846, allocations: 0 / 445.1 MB, free: 8.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002011/0.2867, allocations: 0.7081 MB / 445.8 MB, free: 7.941 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/0.2868, allocations: 195.8 kB / 446 MB, free: 7.707 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006034/0.2874, allocations: 0.498 MB / 446.5 MB, free: 7.203 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.101e-05/0.2874, allocations: 37.7 kB / 446.5 MB, free: 7.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000214/0.2876, allocations: 256.7 kB / 446.7 MB, free: 6.902 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.2877, allocations: 131 kB / 446.9 MB, free: 6.773 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00013/0.2879, allocations: 82.12 kB / 447 MB, free: 6.688 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.288, allocations: 354.8 kB / 447.3 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002543/0.2883, allocations: 124.8 kB / 447.4 MB, free: 6.211 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003426/0.2886, allocations: 221.2 kB / 447.6 MB, free: 5.961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000483/0.2891, allocations: 273.1 kB / 447.9 MB, free: 5.684 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.2891, allocations: 0 / 447.9 MB, free: 5.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008214/0.2899, allocations: 477.1 kB / 448.4 MB, free: 5.199 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.29, allocations: 4 kB / 448.4 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.29, allocations: 3.984 kB / 448.4 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005164/0.2905, allocations: 155.3 kB / 448.5 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002144/0.2907, allocations: 47.94 kB / 448.6 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005562/0.2963, allocations: 6.253 MB / 454.8 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003977/0.2967, allocations: 47.77 kB / 454.9 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.688e-05/0.2967, allocations: 12 kB / 454.9 MB, free: 14.22 MB / 366.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.0002724/0.297, allocations: 193.1 kB / 455.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.959e-05/0.297, allocations: 63.67 kB / 455.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001041/0.2981, allocations: 0.4895 MB / 455.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.2981, allocations: 4 kB / 455.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.2981, allocations: 3.938 kB / 455.6 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.2981, allocations: 3.984 kB / 455.6 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005678/0.2987, allocations: 476.1 kB / 456.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2987, allocations: 0 / 456.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001345/0.2988, allocations: 27.92 kB / 456.1 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000439/0.2992, allocations: 159.5 kB / 456.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.411e-05/0.2993, allocations: 4 kB / 456.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005182/0.3045, allocations: 5.954 MB / 462.2 MB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3045, allocations: 0 / 462.2 MB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.3055, allocations: 0.4996 MB / 462.7 MB, free: 5.789 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002039/0.3057, allocations: 83.5 kB / 462.8 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.789e-05/0.3058, allocations: 11.98 kB / 462.8 MB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002733/0.3061, allocations: 31.98 kB / 462.9 MB, free: 5.664 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.3062, allocations: 55.89 kB / 462.9 MB, free: 5.609 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/0.3062, allocations: 8 kB / 462.9 MB, free: 5.602 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000466/0.3067, allocations: 371 kB / 463.3 MB, free: 5.246 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3067, allocations: 0 / 463.3 MB, free: 5.246 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007988/0.3075, allocations: 179.7 kB / 463.5 MB, free: 5.07 MB / 366.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,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled) * 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.002751/0.3102, allocations: 1.38 MB / 464.8 MB, free: 3.805 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001261/0.3115, allocations: 0.7718 MB / 465.6 MB, free: 2.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3115, allocations: 4.188 kB / 465.6 MB, free: 2.977 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007463/0.3123, allocations: 0.6351 MB / 466.3 MB, free: 2.289 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005914/0.3128, allocations: 122.1 kB / 466.4 MB, free: 2.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00626/0.3191, allocations: 4.301 MB / 470.7 MB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005088/0.3196, allocations: 0.8594 MB / 471.5 MB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001884/0.3198, allocations: 48.16 kB / 471.6 MB, free: 12.81 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000236/0.32, allocations: 171.4 kB / 471.8 MB, free: 12.64 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.32, allocations: 0 / 471.8 MB, free: 12.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06251/0.3826, allocations: 14.99 MB / 486.7 MB, free: 13.83 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/13.66, allocations: 14.59 kB / 486.8 MB, free: 13.82 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --stepSize=0.00118765 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.3334380320739]