Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009612/0.0009611, allocations: 175.9 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.11/1.11, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007932/0.0007931, allocations: 107.4 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.269/0.269, allocations: 43.56 MB / 363.1 MB, free: 51.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003519/0.0003521, allocations: 12 kB / 432.1 MB, free: 5.504 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09616/0.09653, allocations: 58.85 MB / 490.9 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.005127/0.1017, allocations: 5.986 MB / 496.9 MB, free: 4.562 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002799/0.1045, allocations: 2.02 MB / 498.9 MB, free: 2.535 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002857/0.1048, allocations: 23.94 kB / 499 MB, free: 2.512 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004807/0.1053, allocations: 242.6 kB / 499.2 MB, free: 2.273 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001351/0.1067, allocations: 0.7195 MB / 499.9 MB, free: 1.551 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008555/0.1075, allocations: 482.9 kB / 0.4887 GB, free: 1.078 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.1706/0.2782, allocations: 1.082 MB / 0.4897 GB, free: 35.03 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002703/0.2809, allocations: 1.358 MB / 0.491 GB, free: 34.87 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006695/0.2816, allocations: 409.2 kB / 0.4914 GB, free: 34.87 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005398/0.2822, allocations: 0.5273 MB / 0.4919 GB, free: 34.87 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001029/0.2823, allocations: 50.31 kB / 0.492 GB, free: 34.87 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005969/0.2829, allocations: 222.5 kB / 0.4922 GB, free: 34.87 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001496/0.283, allocations: 192.8 kB / 0.4924 GB, free: 34.87 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003925/0.2834, allocations: 0.5069 MB / 0.4929 GB, free: 34.84 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001225/0.2847, allocations: 1.109 MB / 0.494 GB, free: 34.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.2847, allocations: 0 / 0.494 GB, free: 34.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2847, allocations: 1.344 kB / 0.494 GB, free: 34.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.2847, allocations: 0 / 0.494 GB, free: 34.75 MB / 378.7 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.00325/0.288, allocations: 1.488 MB / 0.4954 GB, free: 34.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.288, allocations: 9.156 kB / 0.4954 GB, free: 34.07 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002137/0.2882, allocations: 186.2 kB / 0.4956 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008864/0.2971, allocations: 1.444 MB / 0.497 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007939/0.2979, allocations: 0.5344 MB / 0.4975 GB, free: 33.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.376e-05/0.298, allocations: 100.1 kB / 0.4976 GB, free: 33.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001715/0.2982, allocations: 125 kB / 0.4977 GB, free: 33.67 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002003/0.3002, allocations: 1.182 MB / 0.4989 GB, free: 33.58 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.435e-05/0.3002, allocations: 1.469 kB / 0.4989 GB, free: 33.58 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001031/0.3003, allocations: 51.53 kB / 0.499 GB, free: 33.58 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.312e-05/0.3004, allocations: 33.25 kB / 0.499 GB, free: 33.58 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001888/0.3022, allocations: 1.437 MB / 0.5004 GB, free: 33.56 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006095/0.3084, allocations: 4.866 MB / 0.5051 GB, free: 31.72 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001565/0.3099, allocations: 1.198 MB / 0.5063 GB, free: 31.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004656/0.3104, allocations: 378 kB / 0.5067 GB, free: 31.28 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.615e-05/0.3105, allocations: 97.78 kB / 0.5068 GB, free: 31.19 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.237e-05/0.3105, allocations: 42.66 kB / 0.5068 GB, free: 31.15 MB / 378.7 MB Notification: Performance of pre-optimization done (n=91): time 2.866e-06/0.3105, allocations: 0 / 0.5068 GB, free: 31.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=91): time 0.001826/0.3124, allocations: 1.207 MB / 0.508 GB, free: 30.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.583e-05/0.3124, allocations: 65.97 kB / 0.508 GB, free: 30.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007958/0.3132, allocations: 0.7969 MB / 0.5088 GB, free: 30.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.362e-05/0.3133, allocations: 40.36 kB / 0.5089 GB, free: 30.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000189/0.3135, allocations: 484.2 kB / 0.5093 GB, free: 30.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.3136, allocations: 314.3 kB / 0.5096 GB, free: 29.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.678e-05/0.3137, allocations: 22.44 kB / 0.5096 GB, free: 29.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.741e-05/0.3137, allocations: 402.1 kB / 0.51 GB, free: 29.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004926/0.3142, allocations: 343 kB / 0.5104 GB, free: 29.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005726/0.3148, allocations: 0.6105 MB / 0.511 GB, free: 28.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/0.3159, allocations: 0.981 MB / 0.5119 GB, free: 28.31 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.3159, allocations: 0 / 0.5119 GB, free: 28.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.001557/0.3175, allocations: 1.169 MB / 0.5131 GB, free: 27.84 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.3175, allocations: 15.95 kB / 0.5131 GB, free: 27.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.3175, allocations: 13.03 kB / 0.5131 GB, free: 27.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002375/0.3178, allocations: 63.55 kB / 0.5131 GB, free: 27.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008353/0.3186, allocations: 266 kB / 0.5134 GB, free: 27.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001282/0.3199, allocations: 2.627 MB / 0.516 GB, free: 25.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007692/0.3207, allocations: 159.4 kB / 0.5161 GB, free: 25.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.578e-05/0.3208, allocations: 53.59 kB / 0.5162 GB, free: 25.04 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003003/0.3211, allocations: 246.8 kB / 0.5164 GB, free: 24.85 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.3212, allocations: 91.94 kB / 0.5165 GB, free: 24.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001476/0.3227, allocations: 1.116 MB / 0.5176 GB, free: 24.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.271e-06/0.3227, allocations: 9.469 kB / 0.5176 GB, free: 24.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.3227, allocations: 0 / 0.5176 GB, free: 24.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.3227, allocations: 3.375 kB / 0.5176 GB, free: 24.27 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002705/0.3254, allocations: 2.737 MB / 0.5203 GB, free: 22.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.3254, allocations: 6.656 kB / 0.5203 GB, free: 22.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006171/0.326, allocations: 178.4 kB / 0.5204 GB, free: 22.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001722/0.3262, allocations: 67.92 kB / 0.5205 GB, free: 22.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.693e-05/0.3263, allocations: 26.31 kB / 0.5205 GB, free: 22.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001213/0.3275, allocations: 2.63 MB / 0.5231 GB, free: 19.83 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/0.3275, allocations: 10.41 kB / 0.5231 GB, free: 19.83 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001693/0.3292, allocations: 1.485 MB / 0.5246 GB, free: 18.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000167/0.3294, allocations: 216 kB / 0.5248 GB, free: 18.74 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.941e-05/0.3295, allocations: 21.97 kB / 0.5248 GB, free: 18.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005647/0.3301, allocations: 63.47 kB / 0.5248 GB, free: 18.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/0.3302, allocations: 83.05 kB / 0.5249 GB, free: 18.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.716e-05/0.3303, allocations: 33.81 kB / 0.525 GB, free: 18.69 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005298/0.3308, allocations: 0.5574 MB / 0.5255 GB, free: 18.44 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3308, allocations: 5.688 kB / 0.5255 GB, free: 18.44 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007984/0.3316, allocations: 293.9 kB / 0.5258 GB, free: 18.38 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00197/0.3336, allocations: 2.095 MB / 0.5278 GB, free: 16.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001456/0.3351, allocations: 1.087 MB / 0.5289 GB, free: 16.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3351, allocations: 4.312 kB / 0.5289 GB, free: 16.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006982/0.3358, allocations: 0.6319 MB / 0.5295 GB, free: 16.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.337, allocations: 119.4 kB / 0.5296 GB, free: 15.96 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006611/0.3436, allocations: 5.638 MB / 0.5351 GB, free: 12.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.3439, allocations: 0.9939 MB / 0.5361 GB, free: 11.92 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000516/0.3445, allocations: 381.1 kB / 0.5365 GB, free: 11.65 MB / 378.7 MB Notification: Performance of SimCode: time 2.385e-06/0.3445, allocations: 5.375 kB / 0.5365 GB, free: 11.65 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.943/5.287, allocations: 21.73 MB / 0.5577 GB, free: 2.105 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches