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.001823/0.001823, allocations: 107.9 kB / 18.48 MB, free: 4.543 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.001912/0.001912, allocations: 198.5 kB / 21.43 MB, free: 1.609 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.362/1.362, allocations: 225.6 MB / 249.8 MB, free: 3.617 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 51.91 kB / 366.4 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09113/0.09256, allocations: 52.14 MB / 418.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003692/0.09626, allocations: 2.532 MB / 421 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001035/0.09729, allocations: 0.6544 MB / 421.7 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.499e-05/0.09739, allocations: 3.938 kB / 421.7 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001406/0.09753, allocations: 39.64 kB / 421.7 MB, free: 9.348 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001288/0.09766, allocations: 75.34 kB / 421.8 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002634/0.09792, allocations: 83.83 kB / 421.9 MB, free: 9.191 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002922/0.09821, allocations: 274.7 kB / 422.1 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.09837, allocations: 68.36 kB / 422.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000146/0.09852, allocations: 107.6 kB / 422.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001657/0.09868, allocations: 115.5 kB / 422.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.574e-05/0.09872, allocations: 24 kB / 422.4 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.125e-05/0.0988, allocations: 35.98 kB / 422.5 MB, free: 8.578 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.732e-05/0.09885, allocations: 47.83 kB / 422.5 MB, free: 8.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.09896, allocations: 131.3 kB / 422.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003269/0.09929, allocations: 282.8 kB / 422.9 MB, free: 8.125 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.09929, allocations: 0 / 422.9 MB, free: 8.125 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.0993, allocations: 3.938 kB / 422.9 MB, free: 8.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.0993, allocations: 4 kB / 422.9 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.0008117/0.1001, allocations: 0.5455 MB / 423.5 MB, free: 7.523 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/0.1001, allocations: 8.031 kB / 423.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.968e-05/0.1002, allocations: 8.625 kB / 423.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.308e-05/0.1002, allocations: 54.73 kB / 423.6 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.342e-05/0.1003, allocations: 24.8 kB / 423.6 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000296/0.1006, allocations: 251.9 kB / 423.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.897e-05/0.1006, allocations: 16.81 kB / 423.8 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.714e-05/0.1006, allocations: 16.38 kB / 423.9 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003493/0.101, allocations: 199.2 kB / 424.1 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.101, allocations: 4 kB / 424.1 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.017e-05/0.101, allocations: 4 kB / 424.1 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.101, allocations: 4 kB / 424.1 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003134/0.1013, allocations: 153.7 kB / 424.2 MB, free: 6.738 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.00133/0.1027, allocations: 0.9298 MB / 425.1 MB, free: 5.699 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003005/0.103, allocations: 146.5 kB / 425.3 MB, free: 5.547 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001885/0.1031, allocations: 84.81 kB / 425.4 MB, free: 5.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.1032, allocations: 8 kB / 425.4 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.511e-05/0.1032, allocations: 34.56 kB / 425.4 MB, free: 5.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.162e-06/0.1032, allocations: 0 / 425.4 MB, free: 5.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001242/0.1044, allocations: 413.3 kB / 425.8 MB, free: 4.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.98e-05/0.1045, allocations: 55.41 kB / 425.9 MB, free: 4.914 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001715/0.1046, allocations: 187.1 kB / 426.1 MB, free: 4.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.2e-05/0.1047, allocations: 29.7 kB / 426.1 MB, free: 4.684 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.052e-05/0.1048, allocations: 144.4 kB / 426.2 MB, free: 4.539 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.474e-05/0.1048, allocations: 67.42 kB / 426.3 MB, free: 4.473 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.34e-05/0.1049, allocations: 33.72 kB / 426.3 MB, free: 4.434 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.105, allocations: 334.8 kB / 426.7 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.1051, allocations: 43.98 kB / 426.7 MB, free: 4.055 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.1053, allocations: 77.62 kB / 426.8 MB, free: 3.973 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002341/0.1055, allocations: 123.8 kB / 426.9 MB, free: 3.848 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1055, allocations: 0 / 426.9 MB, free: 3.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004098/0.1059, allocations: 216.5 kB / 427.1 MB, free: 3.629 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.1059, allocations: 11.94 kB / 427.1 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.439e-05/0.1059, allocations: 0 / 427.1 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001315/0.1073, allocations: 224.6 kB / 427.3 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001446/0.1074, allocations: 35.92 kB / 427.4 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004963/0.1079, allocations: 0.607 MB / 428 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.108, allocations: 19.97 kB / 428 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.508e-05/0.108, allocations: 8 kB / 428 MB, free: 2.699 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.0001263/0.1082, allocations: 138.4 kB / 428.1 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.54e-05/0.1082, allocations: 15.91 kB / 428.2 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004581/0.1087, allocations: 220.3 kB / 428.4 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.115e-06/0.1087, allocations: 0 / 428.4 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1087, allocations: 4 kB / 428.4 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1087, allocations: 0 / 428.4 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008812/0.1095, allocations: 0.5996 MB / 429 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.1096, allocations: 4 kB / 429 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001436/0.1097, allocations: 23.98 kB / 429 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001046/0.1107, allocations: 204.7 kB / 429.2 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.1108, allocations: 11.88 kB / 429.2 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004775/0.1112, allocations: 0.6187 MB / 429.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.1112, allocations: 3.984 kB / 429.8 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007993/0.112, allocations: 423.3 kB / 430.2 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.7e-05/0.1121, allocations: 97 kB / 430.3 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.951e-05/0.1121, allocations: 7.984 kB / 430.3 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.1123, allocations: 16.05 kB / 430.4 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.287e-05/0.1123, allocations: 11.98 kB / 430.4 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.1123, allocations: 4 kB / 430.4 MB, free: 176 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001087/0.1124, allocations: 128.3 kB / 430.5 MB, free: 48 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1124, allocations: 0 / 430.5 MB, free: 48 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003065/0.1127, allocations: 59.94 kB / 430.6 MB, free: 15.98 MB / 366.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.001157/0.1139, allocations: 0.9674 MB / 431.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003791/0.1143, allocations: 147.8 kB / 431.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1143, allocations: 4.031 kB / 431.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001845/0.1145, allocations: 79.89 kB / 431.8 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.1148, allocations: 28.06 kB / 431.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002875/0.1177, allocations: 2.327 MB / 434.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003562/0.118, allocations: 0.7397 MB / 434.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.416e-05/0.1181, allocations: 13.53 kB / 434.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.26e-05/0.1181, allocations: 59.42 kB / 434.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1181, allocations: 0 / 434.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02389/0.142, allocations: 4.829 MB / 439.8 MB, free: 6.816 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.66, allocations: 18.48 kB / 439.8 MB, free: 6.805 MB / 366.1 MB " [Timeout remaining time 648] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 14.346430857956875]