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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009363/0.0009363, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9317/0.9317, allocations: 173.4 MB / 200.5 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.335e-06/2.335e-06, allocations: 0 / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.227e-05/2.461e-05, allocations: 2.281 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.004052/0.004077, allocations: 3.603 MB / 322 MB, free: 2.723 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002015/0.006092, allocations: 1.398 MB / 323.4 MB, free: 1.316 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000202/0.006294, allocations: 11.94 kB / 323.5 MB, free: 1.305 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006851/0.006979, allocations: 262.7 kB / 323.7 MB, free: 1.047 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003953/0.007374, allocations: 262.1 kB / 324 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004174/0.007792, allocations: 302 kB / 324.3 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005216/0.008313, allocations: 0.7316 MB / 325 MB, free: 15.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/0.008525, allocations: 109.5 kB / 325.1 MB, free: 15.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000341/0.008866, allocations: 403 kB / 325.5 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002482/0.009114, allocations: 243.3 kB / 325.7 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.075e-05/0.009175, allocations: 52 kB / 325.8 MB, free: 14.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001766/0.009352, allocations: 99.89 kB / 325.9 MB, free: 14.87 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001315/0.009483, allocations: 151.5 kB / 326 MB, free: 14.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001663/0.009649, allocations: 199.5 kB / 326.2 MB, free: 14.53 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009429/0.01059, allocations: 0.7203 MB / 326.9 MB, free: 13.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.0106, allocations: 4 kB / 327 MB, free: 13.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.0106, allocations: 0 / 327 MB, free: 13.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.084e-06/0.0106, allocations: 0 / 327 MB, free: 13.8 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.001134/0.01174, allocations: 0.8802 MB / 327.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.01178, allocations: 8.922 kB / 327.8 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.567e-05/0.01185, allocations: 86.7 kB / 327.9 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.097e-05/0.01193, allocations: 68.52 kB / 328 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004172/0.01235, allocations: 339.6 kB / 328.3 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/0.01237, allocations: 29.38 kB / 328.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.657e-05/0.01241, allocations: 36.38 kB / 328.4 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005451/0.01295, allocations: 0.5388 MB / 328.9 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.01296, allocations: 0 / 328.9 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.918e-05/0.01299, allocations: 16 kB / 328.9 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.013, allocations: 16 kB / 329 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003997/0.0134, allocations: 311.8 kB / 329.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.01523, allocations: 1.556 MB / 330.8 MB, free: 9.723 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004815/0.01571, allocations: 346.1 kB / 331.2 MB, free: 9.375 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002065/0.01592, allocations: 152.8 kB / 331.3 MB, free: 9.223 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.292e-05/0.01594, allocations: 7.938 kB / 331.3 MB, free: 9.215 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003628/0.0163, allocations: 365.2 kB / 331.7 MB, free: 8.805 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 1.522e-06/0.0163, allocations: 0 / 331.7 MB, free: 8.805 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001208/0.01751, allocations: 0.712 MB / 332.4 MB, free: 8.074 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.8e-05/0.01759, allocations: 162.2 kB / 332.5 MB, free: 7.879 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004253/0.01801, allocations: 0.4979 MB / 333 MB, free: 7.375 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.266e-05/0.01805, allocations: 41.7 kB / 333.1 MB, free: 7.328 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001689/0.01822, allocations: 260.7 kB / 333.3 MB, free: 7.066 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.279e-05/0.01829, allocations: 127 kB / 333.5 MB, free: 6.941 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004734/0.01876, allocations: 78.14 kB / 333.5 MB, free: 6.855 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.01891, allocations: 366.7 kB / 333.9 MB, free: 6.488 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001814/0.0191, allocations: 121 kB / 334 MB, free: 6.371 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003228/0.01942, allocations: 341.5 kB / 334.3 MB, free: 5.977 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003417/0.01976, allocations: 273.1 kB / 334.6 MB, free: 5.699 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.01977, allocations: 4 kB / 334.6 MB, free: 5.695 MB / 298.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006918/0.02046, allocations: 477 kB / 335.1 MB, free: 5.211 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.02048, allocations: 8 kB / 335.1 MB, free: 5.203 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.02049, allocations: 0 / 335.1 MB, free: 5.203 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004131/0.0209, allocations: 155.3 kB / 335.2 MB, free: 5.039 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001375/0.02104, allocations: 52 kB / 335.3 MB, free: 4.988 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004155/0.0252, allocations: 6.206 MB / 341.5 MB, free: 14.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001839/0.02538, allocations: 59.73 kB / 341.6 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.732e-05/0.0254, allocations: 12 kB / 341.6 MB, free: 14.26 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.0001709/0.02557, allocations: 192.5 kB / 341.8 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.504e-05/0.02561, allocations: 51.67 kB / 341.8 MB, free: 14.01 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005922/0.02621, allocations: 0.5008 MB / 342.3 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.02621, allocations: 4 kB / 342.3 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-06/0.02621, allocations: 3.938 kB / 342.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.02621, allocations: 0 / 342.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003153/0.02653, allocations: 420.3 kB / 342.7 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.02653, allocations: 0 / 342.7 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.772e-05/0.0266, allocations: 27.97 kB / 342.8 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002406/0.02684, allocations: 151.3 kB / 342.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.02686, allocations: 15.92 kB / 342.9 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003573/0.03043, allocations: 5.919 MB / 348.8 MB, free: 6.449 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.03043, allocations: 0 / 348.8 MB, free: 6.449 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005858/0.03102, allocations: 0.5114 MB / 349.3 MB, free: 5.906 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/0.03113, allocations: 79.56 kB / 349.4 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.03117, allocations: 11.98 kB / 349.4 MB, free: 5.816 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.03129, allocations: 23.98 kB / 349.5 MB, free: 5.793 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.623e-05/0.03139, allocations: 59.89 kB / 349.5 MB, free: 5.734 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-05/0.03141, allocations: 16 kB / 349.5 MB, free: 5.719 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002605/0.03167, allocations: 363 kB / 349.9 MB, free: 5.363 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03167, allocations: 0 / 349.9 MB, free: 5.363 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005164/0.03219, allocations: 175.7 kB / 350.1 MB, free: 5.191 MB / 314.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.0015/0.03369, allocations: 1.399 MB / 351.5 MB, free: 3.938 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006641/0.03435, allocations: 0.7794 MB / 352.2 MB, free: 3.105 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.03435, allocations: 0 / 352.2 MB, free: 3.105 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003759/0.03473, allocations: 0.6393 MB / 352.9 MB, free: 2.414 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003421/0.03507, allocations: 124.6 kB / 353 MB, free: 2.297 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00405/0.03912, allocations: 4.271 MB / 357.3 MB, free: 13.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001545/0.03928, allocations: 271 kB / 357.5 MB, free: 13.61 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001128/0.03939, allocations: 48.11 kB / 357.6 MB, free: 13.56 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.03953, allocations: 172.4 kB / 357.7 MB, free: 13.39 MB / 330.7 MB Notification: Performance of SimCode: time 4.91e-07/0.03953, allocations: 0 / 357.7 MB, free: 13.39 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03337/0.0729, allocations: 15.38 MB / 373.1 MB, free: 14.18 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.982/8.055, allocations: 6.984 kB / 373.1 MB, free: 14.18 MB / 346.7 MB " [Timeout remaining time 652] (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 --stepSize=0.00118765 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 9.953211171552539]