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.00115/0.00115, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 206.4 kB / 16.79 MB, free: 6.84 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.185/1.185, allocations: 205.1 MB / 222.6 MB, free: 4.785 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2705/0.2705, allocations: 43.5 MB / 313.5 MB, free: 8.512 MB / 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.001322/0.001322, allocations: 63.91 kB / 382.1 MB, free: 8.645 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08797/0.0893, allocations: 57.78 MB / 439.9 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.006595/0.09593, allocations: 6.888 MB / 446.8 MB, free: 7.844 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002816/0.09876, allocations: 2.183 MB / 449 MB, free: 5.652 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002618/0.09905, allocations: 27.94 kB / 449 MB, free: 5.625 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002564/0.1016, allocations: 1.432 MB / 450.4 MB, free: 4.188 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001341/0.103, allocations: 0.7739 MB / 451.2 MB, free: 3.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009319/0.1039, allocations: 0.5531 MB / 451.8 MB, free: 2.855 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008219/0.1047, allocations: 1.132 MB / 452.9 MB, free: 1.719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009292/0.1057, allocations: 0.744 MB / 453.6 MB, free: 0.9531 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003961/0.1061, allocations: 462 kB / 454.1 MB, free: 0.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1494/0.2555, allocations: 0.5973 MB / 454.7 MB, free: 38.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003397/0.2558, allocations: 69.28 kB / 454.8 MB, free: 38.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006934/0.2565, allocations: 249.1 kB / 455 MB, free: 38.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001416/0.2567, allocations: 226.6 kB / 455.2 MB, free: 38.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004159/0.2571, allocations: 0.5454 MB / 455.8 MB, free: 38.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001042/0.2582, allocations: 1.424 MB / 457.2 MB, free: 38.44 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2582, allocations: 3.719 kB / 457.2 MB, free: 38.44 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2582, allocations: 0 / 457.2 MB, free: 38.44 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.2582, allocations: 2.844 kB / 457.2 MB, free: 38.44 MB / 382.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.003291/0.2615, allocations: 1.708 MB / 458.9 MB, free: 37.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.2615, allocations: 10.69 kB / 458.9 MB, free: 37.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001499/0.2617, allocations: 182.5 kB / 459.1 MB, free: 37.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009409/0.2711, allocations: 1.421 MB / 460.5 MB, free: 37.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007009/0.2718, allocations: 0.5448 MB / 461.1 MB, free: 37.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.923e-05/0.2719, allocations: 96.55 kB / 461.2 MB, free: 37.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001471/0.272, allocations: 118.1 kB / 461.3 MB, free: 37.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001726/0.2738, allocations: 1.185 MB / 462.5 MB, free: 37.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.333e-05/0.2738, allocations: 6.656 kB / 462.5 MB, free: 37.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/0.2739, allocations: 53.81 kB / 462.5 MB, free: 37.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.274, allocations: 27.78 kB / 462.5 MB, free: 37.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001905/0.2759, allocations: 1.436 MB / 464 MB, free: 37.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005752/0.2816, allocations: 4.841 MB / 468.8 MB, free: 34.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001465/0.2831, allocations: 1.196 MB / 470 MB, free: 34.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004693/0.2836, allocations: 371.9 kB / 470.4 MB, free: 33.87 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.568e-05/0.2837, allocations: 105.6 kB / 470.5 MB, free: 33.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/0.2837, allocations: 43.62 kB / 470.5 MB, free: 33.72 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 3.567e-06/0.2837, allocations: 0 / 470.5 MB, free: 33.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=91): time 0.001817/0.2856, allocations: 1.199 MB / 471.7 MB, free: 33.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.216e-05/0.2856, allocations: 61.91 kB / 471.8 MB, free: 33.03 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006955/0.2863, allocations: 0.7997 MB / 472.6 MB, free: 32.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.182e-05/0.2863, allocations: 40.98 kB / 472.6 MB, free: 32.63 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.2865, allocations: 480 kB / 473.1 MB, free: 32.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001289/0.2867, allocations: 311.3 kB / 473.4 MB, free: 32.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002481/0.2869, allocations: 201.6 kB / 473.6 MB, free: 31.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.46e-05/0.287, allocations: 404.7 kB / 474 MB, free: 31.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000506/0.2875, allocations: 342.1 kB / 474.3 MB, free: 31.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005847/0.2881, allocations: 0.6138 MB / 474.9 MB, free: 30.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.2892, allocations: 0.9733 MB / 475.9 MB, free: 30.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.2892, allocations: 0 / 475.9 MB, free: 30.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.001645/0.2909, allocations: 1.171 MB / 477.1 MB, free: 29.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.2909, allocations: 13.59 kB / 477.1 MB, free: 29.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.2909, allocations: 9.516 kB / 477.1 MB, free: 29.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000243/0.2912, allocations: 66.86 kB / 477.2 MB, free: 29.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008793/0.292, allocations: 260.5 kB / 477.4 MB, free: 29.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/0.2933, allocations: 2.628 MB / 480.1 MB, free: 27.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007081/0.294, allocations: 151 kB / 480.2 MB, free: 27.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.548e-05/0.2941, allocations: 53.55 kB / 480.3 MB, free: 27.06 MB / 382.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.0002914/0.2944, allocations: 256.2 kB / 480.5 MB, free: 26.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.2945, allocations: 90.56 kB / 480.6 MB, free: 26.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001468/0.296, allocations: 1.109 MB / 481.7 MB, free: 26.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.296, allocations: 8.844 kB / 481.7 MB, free: 26.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.296, allocations: 6.312 kB / 481.7 MB, free: 26.29 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.296, allocations: 3.188 kB / 481.7 MB, free: 26.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0027/0.2987, allocations: 2.725 MB / 484.4 MB, free: 24.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.2987, allocations: 10.03 kB / 484.5 MB, free: 24.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000624/0.2994, allocations: 182.7 kB / 484.6 MB, free: 24.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001731/0.2996, allocations: 63.2 kB / 484.7 MB, free: 24.51 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.831e-05/0.2996, allocations: 30.47 kB / 484.7 MB, free: 24.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00114/0.3008, allocations: 2.62 MB / 487.3 MB, free: 21.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.3008, allocations: 11.94 kB / 487.4 MB, free: 21.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001793/0.3026, allocations: 1.474 MB / 488.8 MB, free: 20.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/0.3027, allocations: 201.5 kB / 489 MB, free: 20.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001202/0.3029, allocations: 30.97 kB / 489.1 MB, free: 20.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005684/0.3034, allocations: 57.27 kB / 489.1 MB, free: 20.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.3036, allocations: 78.88 kB / 489.2 MB, free: 20.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.457e-05/0.3036, allocations: 34.31 kB / 489.2 MB, free: 20.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005811/0.3042, allocations: 0.5595 MB / 489.8 MB, free: 20.47 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3042, allocations: 1.406 kB / 489.8 MB, free: 20.47 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000865/0.3051, allocations: 298.2 kB / 490.1 MB, free: 20.41 MB / 382.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.002128/0.3072, allocations: 2.101 MB / 492.2 MB, free: 18.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001595/0.3088, allocations: 1.084 MB / 493.3 MB, free: 18.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.3089, allocations: 6.531 kB / 493.3 MB, free: 18.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007586/0.3096, allocations: 0.6148 MB / 493.9 MB, free: 18.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007502/0.3104, allocations: 126.6 kB / 494 MB, free: 18.06 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01005/0.3204, allocations: 9.307 MB / 0.4915 GB, free: 12.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004015/0.3209, allocations: 0.9933 MB / 0.4925 GB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006646/0.3215, allocations: 149.3 kB / 0.4926 GB, free: 11.33 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004333/0.322, allocations: 364.2 kB / 0.493 GB, free: 11.07 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.322, allocations: 4 kB / 0.493 GB, free: 11.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03066/0.3526, allocations: 18.23 MB / 0.5108 GB, free: 4.414 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001499/0.3528, allocations: 243.6 kB / 0.511 GB, free: 4.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.009/2.362, allocations: 0 / 0.511 GB, free: 4.16 MB / 382.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","../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches