Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001083, allocations: 104.5 kB / 16.41 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 189.5 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.446/1.446, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2379/0.2379, allocations: 43.52 MB / 314.1 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 65.45 kB / 441.3 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1496, allocations: 57.79 MB / 499.1 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.009711/0.1594, allocations: 6.925 MB / 0.4942 GB, free: 5.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005076/0.1645, allocations: 2.19 MB / 0.4963 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001243/0.1657, allocations: 20 kB / 0.4963 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003974/0.1698, allocations: 1.532 MB / 0.4978 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002924/0.1728, allocations: 0.8548 MB / 0.4986 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00161/0.1744, allocations: 0.5764 MB / 0.4992 GB, free: 128 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002128/0.1765, allocations: 1.187 MB / 0.5004 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001569/0.1781, allocations: 0.8158 MB / 0.5012 GB, free: 14.09 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001021/0.1791, allocations: 490.1 kB / 0.5016 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001036/0.1802, allocations: 0.6185 MB / 0.5022 GB, free: 12.99 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003536/0.1806, allocations: 96 kB / 0.5023 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001067/0.1816, allocations: 283.8 kB / 0.5026 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003671/0.182, allocations: 255 kB / 0.5028 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001001/0.183, allocations: 0.5674 MB / 0.5034 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002348/0.1854, allocations: 1.471 MB / 0.5048 GB, free: 10.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.1854, allocations: 0 / 0.5048 GB, free: 10.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1854, allocations: 0 / 0.5048 GB, free: 10.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.869e-05/0.1855, allocations: 0 / 0.5048 GB, free: 10.32 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 316 * Number of variables: 316 Notification: Performance of Generate backend data structure: time 0.005054/0.1905, allocations: 1.713 MB / 0.5065 GB, free: 8.559 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.1906, allocations: 19.77 kB / 0.5065 GB, free: 8.539 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003741/0.191, allocations: 182.1 kB / 0.5067 GB, free: 8.352 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01012/0.2011, allocations: 1.428 MB / 0.5081 GB, free: 6.922 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00151/0.2027, allocations: 0.5442 MB / 0.5086 GB, free: 6.336 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/0.2028, allocations: 98.48 kB / 0.5087 GB, free: 6.238 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004541/0.2033, allocations: 120 kB / 0.5088 GB, free: 6.121 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003171/0.2064, allocations: 1.185 MB / 0.51 GB, free: 4.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.873e-05/0.2065, allocations: 7.906 kB / 0.51 GB, free: 4.902 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001792/0.2067, allocations: 52 kB / 0.51 GB, free: 4.852 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.364e-05/0.2067, allocations: 28 kB / 0.5101 GB, free: 4.824 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002866/0.2096, allocations: 1.439 MB / 0.5115 GB, free: 3.379 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009549/0.2192, allocations: 4.81 MB / 0.5162 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002133/0.2214, allocations: 1.198 MB / 0.5173 GB, free: 12.98 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000689/0.2221, allocations: 376.2 kB / 0.5177 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001466/0.2223, allocations: 98.08 kB / 0.5178 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.917e-05/0.2224, allocations: 43.56 kB / 0.5178 GB, free: 12.44 MB / 414.1 MB Notification: Performance of pre-optimization done (n=91): time 3.877e-06/0.2224, allocations: 4 kB / 0.5178 GB, free: 12.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=91): time 0.00255/0.225, allocations: 1.198 MB / 0.519 GB, free: 11.19 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.781e-05/0.225, allocations: 60.41 kB / 0.5191 GB, free: 11.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001206/0.2262, allocations: 0.7973 MB / 0.5198 GB, free: 10.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.621e-05/0.2263, allocations: 45.64 kB / 0.5199 GB, free: 10.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004184/0.2268, allocations: 482.7 kB / 0.5204 GB, free: 9.785 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002921/0.2271, allocations: 307.6 kB / 0.5206 GB, free: 9.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003664/0.2274, allocations: 194.8 kB / 0.5208 GB, free: 9.285 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002141/0.2277, allocations: 398.7 kB / 0.5212 GB, free: 8.887 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006611/0.2283, allocations: 346.5 kB / 0.5215 GB, free: 8.547 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008484/0.2292, allocations: 0.6062 MB / 0.5221 GB, free: 7.828 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001657/0.2309, allocations: 0.9827 MB / 0.5231 GB, free: 6.738 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.2309, allocations: 0 / 0.5231 GB, free: 6.738 MB / 414.1 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.002318/0.2332, allocations: 1.17 MB / 0.5242 GB, free: 5.551 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.2332, allocations: 8 kB / 0.5242 GB, free: 5.543 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.916e-05/0.2333, allocations: 12.06 kB / 0.5243 GB, free: 5.531 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003287/0.2336, allocations: 69.61 kB / 0.5243 GB, free: 5.457 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000979/0.2346, allocations: 255.6 kB / 0.5246 GB, free: 5.207 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002379/0.237, allocations: 2.828 MB / 0.5273 GB, free: 2.098 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009512/0.2379, allocations: 158.4 kB / 0.5275 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.187e-05/0.238, allocations: 44 kB / 0.5275 GB, free: 1.898 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (141): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004167/0.2385, allocations: 265.3 kB / 0.5278 GB, free: 1.629 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001836/0.2387, allocations: 86.97 kB / 0.5279 GB, free: 1.543 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001922/0.2406, allocations: 1.11 MB / 0.5289 GB, free: 412 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.2406, allocations: 8 kB / 0.5289 GB, free: 404 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.2406, allocations: 3.938 kB / 0.529 GB, free: 400 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.2406, allocations: 11.91 kB / 0.529 GB, free: 388 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2704/0.5111, allocations: 2.714 MB / 0.5316 GB, free: 37.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-05/0.5111, allocations: 6.781 kB / 0.5316 GB, free: 37.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007334/0.5118, allocations: 184.9 kB / 0.5318 GB, free: 37.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000217/0.5121, allocations: 64.64 kB / 0.5319 GB, free: 37.28 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.355e-05/0.5121, allocations: 28.5 kB / 0.5319 GB, free: 37.28 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001496/0.5136, allocations: 2.821 MB / 0.5346 GB, free: 34.6 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/0.5137, allocations: 6.188 kB / 0.5346 GB, free: 34.6 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002453/0.5161, allocations: 1.483 MB / 0.5361 GB, free: 34.21 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002602/0.5164, allocations: 193.2 kB / 0.5363 GB, free: 34.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001302/0.5165, allocations: 26.94 kB / 0.5363 GB, free: 34.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006078/0.5171, allocations: 54.14 kB / 0.5364 GB, free: 34.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/0.5173, allocations: 82.3 kB / 0.5364 GB, free: 34.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.33e-05/0.5174, allocations: 34.39 kB / 0.5365 GB, free: 34.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007537/0.5181, allocations: 0.5622 MB / 0.537 GB, free: 33.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5181, allocations: 1.125 kB / 0.537 GB, free: 33.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009784/0.5191, allocations: 295.3 kB / 0.5373 GB, free: 33.95 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (94): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002368/0.5215, allocations: 2.091 MB / 0.5393 GB, free: 32.97 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00182/0.5233, allocations: 1.098 MB / 0.5404 GB, free: 32.47 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.5233, allocations: 1.375 kB / 0.5404 GB, free: 32.47 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008293/0.5242, allocations: 0.6259 MB / 0.541 GB, free: 32.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007777/0.525, allocations: 113.3 kB / 0.5411 GB, free: 32.04 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01236/0.5373, allocations: 8.272 MB / 0.5492 GB, free: 27.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007784/0.5382, allocations: 0.9968 MB / 0.5502 GB, free: 26.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000834/0.539, allocations: 156.1 kB / 0.5503 GB, free: 26.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006705/0.5397, allocations: 364.8 kB / 0.5507 GB, free: 26.19 MB / 414.1 MB Notification: Performance of SimCode: time 2.034e-06/0.5397, allocations: 0 / 0.5507 GB, free: 26.19 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06075/0.6005, allocations: 19.5 MB / 0.5697 GB, free: 16.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.51, allocations: 4.062 kB / 0.5697 GB, free: 16.3 MB / 414.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection.fmu > ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/QuasiStatic/SinglePhase/SerialConnection/SerialConnection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches