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.001753/0.001753, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001701/0.001701, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 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 1.347/1.347, allocations: 225.6 MB / 249.1 MB, free: 3.598 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001422/0.001422, allocations: 51.92 kB / 365.6 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09317/0.09459, allocations: 52.15 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005928/0.1005, allocations: 3.98 MB / 421.8 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00265/0.1032, allocations: 1.437 MB / 423.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002657/0.1034, allocations: 11.94 kB / 423.2 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007727/0.1042, allocations: 254.7 kB / 423.5 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006535/0.1049, allocations: 254.4 kB / 423.7 MB, free: 6.645 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000675/0.1055, allocations: 291.2 kB / 424 MB, free: 6.359 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008826/0.1064, allocations: 0.7085 MB / 424.7 MB, free: 5.648 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002387/0.1067, allocations: 124.9 kB / 424.8 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003428/0.107, allocations: 275 kB / 425.1 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003613/0.1074, allocations: 306.7 kB / 425.4 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.636e-05/0.1074, allocations: 51.94 kB / 425.4 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002021/0.1077, allocations: 99.95 kB / 425.5 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.1078, allocations: 139.5 kB / 425.7 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002852/0.1081, allocations: 298.5 kB / 426 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008379/0.1089, allocations: 0.7196 MB / 426.7 MB, free: 3.648 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1089, allocations: 0 / 426.7 MB, free: 3.648 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1089, allocations: 0 / 426.7 MB, free: 3.648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.1089, allocations: 0 / 426.7 MB, free: 3.648 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.001858/0.1108, allocations: 0.9525 MB / 427.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.1108, allocations: 8.031 kB / 427.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.027e-05/0.1109, allocations: 82.7 kB / 427.7 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.111, allocations: 68.52 kB / 427.8 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006001/0.1116, allocations: 423.1 kB / 428.2 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.022e-05/0.1117, allocations: 29.38 kB / 428.2 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.065e-05/0.1117, allocations: 39.94 kB / 428.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007977/0.1125, allocations: 437.6 kB / 428.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.1126, allocations: 7.938 kB / 428.7 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.991e-05/0.1126, allocations: 19.94 kB / 428.7 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.627e-05/0.1126, allocations: 8 kB / 428.7 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006186/0.1132, allocations: 319.8 kB / 429.1 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0025/0.1157, allocations: 1.703 MB / 430.8 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006633/0.1164, allocations: 323.5 kB / 431.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003106/0.1167, allocations: 161.4 kB / 431.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.882e-05/0.1167, allocations: 4 kB / 431.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004605/0.1172, allocations: 266.4 kB / 431.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 2.104e-06/0.1172, allocations: 3.938 kB / 431.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.002183/0.1194, allocations: 1.006 MB / 432.5 MB, free: 13.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.1195, allocations: 187.9 kB / 432.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005928/0.1201, allocations: 0.4979 MB / 433.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.839e-05/0.1201, allocations: 41.7 kB / 433.2 MB, free: 12.69 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002157/0.1204, allocations: 248.8 kB / 433.5 MB, free: 12.44 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00011/0.1205, allocations: 130.9 kB / 433.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.1206, allocations: 78.12 kB / 433.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.1208, allocations: 354.8 kB / 434 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002512/0.121, allocations: 120.8 kB / 434.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000348/0.1214, allocations: 217.3 kB / 434.4 MB, free: 11.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004786/0.1219, allocations: 265.3 kB / 434.6 MB, free: 11.24 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.1219, allocations: 7.938 kB / 434.6 MB, free: 11.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008387/0.1227, allocations: 473 kB / 435.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.1227, allocations: 8 kB / 435.1 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.1227, allocations: 0 / 435.1 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000518/0.1232, allocations: 167.5 kB / 435.3 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002126/0.1235, allocations: 55.84 kB / 435.3 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005688/0.1291, allocations: 6.647 MB / 442 MB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003863/0.1295, allocations: 55.78 kB / 442 MB, free: 3.258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.736e-05/0.1296, allocations: 12 kB / 442 MB, free: 3.246 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.0002715/0.1298, allocations: 192.1 kB / 442.2 MB, free: 3.051 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.957e-05/0.1299, allocations: 55.61 kB / 442.3 MB, free: 2.996 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000111/0.13, allocations: 56.77 kB / 442.3 MB, free: 2.941 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.13, allocations: 4 kB / 442.3 MB, free: 2.938 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.13, allocations: 3.984 kB / 442.3 MB, free: 2.934 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.13, allocations: 0 / 442.3 MB, free: 2.934 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005557/0.1306, allocations: 0.4895 MB / 442.8 MB, free: 2.395 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.1306, allocations: 0 / 442.8 MB, free: 2.395 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001337/0.1307, allocations: 35.91 kB / 442.9 MB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004445/0.1312, allocations: 159.3 kB / 443 MB, free: 2.191 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.191e-05/0.1312, allocations: 4 kB / 443 MB, free: 2.188 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1941/0.3253, allocations: 6.349 MB / 449.4 MB, free: 25.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3253, allocations: 3.375 kB / 449.4 MB, free: 25.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008811/0.3262, allocations: 0.5057 MB / 449.9 MB, free: 25.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001614/0.3263, allocations: 154 kB / 450 MB, free: 25.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.97e-05/0.3264, allocations: 8.172 kB / 450 MB, free: 25.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002546/0.3267, allocations: 34.05 kB / 450.1 MB, free: 25.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.3268, allocations: 52.8 kB / 450.1 MB, free: 25.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-05/0.3268, allocations: 13.33 kB / 450.1 MB, free: 25.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003492/0.3272, allocations: 357.4 kB / 450.5 MB, free: 25.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3272, allocations: 1.688 kB / 450.5 MB, free: 25.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007423/0.3279, allocations: 175.1 kB / 450.6 MB, free: 25.59 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,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.002236/0.3301, allocations: 1.368 MB / 452 MB, free: 24.92 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009191/0.331, allocations: 0.7916 MB / 452.8 MB, free: 24.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3311, allocations: 1.5 kB / 452.8 MB, free: 24.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005032/0.3316, allocations: 0.6391 MB / 453.4 MB, free: 24.01 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004709/0.332, allocations: 118.2 kB / 453.6 MB, free: 24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005219/0.3372, allocations: 4.247 MB / 457.8 MB, free: 22.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.3375, allocations: 0.8633 MB / 458.7 MB, free: 21.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001825/0.3377, allocations: 51.88 kB / 458.7 MB, free: 21.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001755/0.3379, allocations: 167.9 kB / 458.9 MB, free: 21.65 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3379, allocations: 1.531 kB / 458.9 MB, free: 21.65 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05166/0.3896, allocations: 14.52 MB / 473.4 MB, free: 17.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/12.72, allocations: 9.375 kB / 473.4 MB, free: 17.15 MB / 366.1 MB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 15.594889187719673]