Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.001274/0.001274, allocations: 125 kB / 17.79 MB, free: 5.121 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.001282/0.001282, allocations: 190.9 kB / 20.73 MB, free: 2.184 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.343/1.343, allocations: 225.6 MB / 249.1 MB, free: 3.625 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.HeatingRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 51.92 kB / 365.6 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09732/0.09879, allocations: 52.14 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003633/0.1024, allocations: 2.528 MB / 420.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001125/0.1035, allocations: 0.666 MB / 421 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001035/0.1037, allocations: 4 kB / 421 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.1038, allocations: 39.64 kB / 421 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001198/0.1039, allocations: 63.36 kB / 421.1 MB, free: 9.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002769/0.1042, allocations: 87.83 kB / 421.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002919/0.1045, allocations: 282.7 kB / 421.4 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001542/0.1046, allocations: 60.38 kB / 421.5 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001677/0.1048, allocations: 115.6 kB / 421.6 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001587/0.105, allocations: 107.5 kB / 421.7 MB, free: 8.641 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.848e-05/0.105, allocations: 24 kB / 421.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.381e-05/0.1051, allocations: 35.98 kB / 421.8 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.033e-05/0.1051, allocations: 55.72 kB / 421.8 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.1053, allocations: 123.4 kB / 422 MB, free: 8.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000349/0.1056, allocations: 286.8 kB / 422.2 MB, free: 8.125 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1056, allocations: 7.938 kB / 422.2 MB, free: 8.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1056, allocations: 0 / 422.2 MB, free: 8.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.1056, allocations: 0 / 422.2 MB, free: 8.117 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0008188/0.1064, allocations: 0.5377 MB / 422.8 MB, free: 7.531 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.1065, allocations: 12.03 kB / 422.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.109e-05/0.1065, allocations: 54.73 kB / 422.8 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.168e-05/0.1066, allocations: 24.8 kB / 422.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003348/0.1069, allocations: 251.9 kB / 423.1 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.1069, allocations: 12.81 kB / 423.1 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.887e-05/0.107, allocations: 20.38 kB / 423.1 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003477/0.1073, allocations: 199.3 kB / 423.3 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.1073, allocations: 0 / 423.3 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.165e-05/0.1074, allocations: 16 kB / 423.4 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.1074, allocations: 4 kB / 423.4 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003053/0.1077, allocations: 149.7 kB / 423.5 MB, free: 6.746 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/0.109, allocations: 0.9298 MB / 424.4 MB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002996/0.1093, allocations: 142.6 kB / 424.6 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001901/0.1095, allocations: 88.8 kB / 424.7 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.1095, allocations: 0 / 424.7 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.1095, allocations: 42.56 kB / 424.7 MB, free: 5.418 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 9.82e-07/0.1095, allocations: 0 / 424.7 MB, free: 5.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001218/0.1108, allocations: 411.5 kB / 425.1 MB, free: 4.988 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.1108, allocations: 51.41 kB / 425.2 MB, free: 4.926 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001704/0.111, allocations: 187.1 kB / 425.3 MB, free: 4.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/0.111, allocations: 29.7 kB / 425.4 MB, free: 4.695 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.429e-05/0.1111, allocations: 152.3 kB / 425.5 MB, free: 4.543 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.649e-05/0.1112, allocations: 63.44 kB / 425.6 MB, free: 4.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.272e-05/0.1112, allocations: 37.7 kB / 425.6 MB, free: 4.438 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.1114, allocations: 330.8 kB / 425.9 MB, free: 4.105 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.1115, allocations: 47.98 kB / 426 MB, free: 4.059 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001305/0.1116, allocations: 73.62 kB / 426.1 MB, free: 3.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002301/0.1118, allocations: 128.1 kB / 426.2 MB, free: 3.852 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1118, allocations: 0 / 426.2 MB, free: 3.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003962/0.1122, allocations: 216.2 kB / 426.4 MB, free: 3.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.1122, allocations: 8 kB / 426.4 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.1122, allocations: 3.938 kB / 426.4 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001359/0.1136, allocations: 216.6 kB / 426.6 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.1137, allocations: 31.92 kB / 426.6 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004842/0.1142, allocations: 0.6148 MB / 427.3 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.1143, allocations: 11.92 kB / 427.3 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.1144, allocations: 11.98 kB / 427.3 MB, free: 2.711 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001235/0.1145, allocations: 142.4 kB / 427.4 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.116e-05/0.1145, allocations: 15.91 kB / 427.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004351/0.115, allocations: 216.3 kB / 427.7 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.115, allocations: 4 kB / 427.7 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.115, allocations: 3.984 kB / 427.7 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.115, allocations: 0 / 427.7 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008713/0.1158, allocations: 0.5993 MB / 428.3 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.1158, allocations: 7.875 kB / 428.3 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001413/0.116, allocations: 27.98 kB / 428.3 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001075/0.1171, allocations: 196.7 kB / 428.5 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.1171, allocations: 15.94 kB / 428.5 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004571/0.1175, allocations: 0.6187 MB / 429.1 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.1175, allocations: 0 / 429.1 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007829/0.1183, allocations: 427.2 kB / 429.5 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.517e-05/0.1184, allocations: 97 kB / 429.6 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.693e-05/0.1184, allocations: 4 kB / 429.6 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00014/0.1185, allocations: 7.984 kB / 429.6 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.117e-05/0.1186, allocations: 15.98 kB / 429.7 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.167e-05/0.1186, allocations: 8.062 kB / 429.7 MB, free: 184 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001022/0.1187, allocations: 128.3 kB / 429.8 MB, free: 56 kB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1187, allocations: 0 / 429.8 MB, free: 56 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002815/0.119, allocations: 55.89 kB / 429.8 MB, free: 0 / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001151/0.1201, allocations: 0.9655 MB / 430.8 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003731/0.1205, allocations: 143.7 kB / 431 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1205, allocations: 4.031 kB / 431 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001756/0.1207, allocations: 86.52 kB / 431 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003048/0.121, allocations: 21.97 kB / 431.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002782/0.1238, allocations: 2.333 MB / 433.4 MB, free: 12.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003271/0.1241, allocations: 0.7319 MB / 434.1 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.781e-05/0.1242, allocations: 21.48 kB / 434.1 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.775e-05/0.1242, allocations: 55.42 kB / 434.2 MB, free: 11.49 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1242, allocations: 0 / 434.2 MB, free: 11.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0715/0.1957, allocations: 4.805 MB / 439 MB, free: 6.844 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/12.49, allocations: 8.062 kB / 439 MB, free: 6.836 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.350837190169841]