Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00136/0.00136, allocations: 110 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001485, allocations: 213.6 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 230.5 MB / 257.4 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2402/0.2402, allocations: 46.93 MB / 360.8 MB, free: 4.184 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00234/0.00234, allocations: 75.88 kB / 0.4962 GB, free: 7.762 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.345/0.3473, allocations: 66.09 MB / 0.5607 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.009395/0.3567, allocations: 7.538 MB / 0.5681 GB, free: 12.72 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004914/0.3616, allocations: 2.377 MB / 0.5704 GB, free: 10.33 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00105/0.3627, allocations: 27.94 kB / 0.5705 GB, free: 10.3 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004334/0.367, allocations: 1.753 MB / 0.5722 GB, free: 8.547 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002354/0.3694, allocations: 0.7138 MB / 0.5729 GB, free: 7.832 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001784/0.3711, allocations: 0.7453 MB / 0.5736 GB, free: 7.09 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001776/0.3729, allocations: 1.249 MB / 0.5748 GB, free: 5.832 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001378/0.3743, allocations: 0.8711 MB / 0.5757 GB, free: 4.934 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008221/0.3751, allocations: 0.5293 MB / 0.5762 GB, free: 4.402 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000843/0.376, allocations: 0.6652 MB / 0.5768 GB, free: 3.734 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001563/0.3761, allocations: 107.9 kB / 0.5769 GB, free: 3.629 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007277/0.3768, allocations: 307.8 kB / 0.5772 GB, free: 3.328 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002161/0.3771, allocations: 271 kB / 0.5775 GB, free: 3.062 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005885/0.3777, allocations: 0.6064 MB / 0.5781 GB, free: 2.453 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002177/0.3798, allocations: 1.607 MB / 0.5796 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.3798, allocations: 7.938 kB / 0.5797 GB, free: 0.832 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3798, allocations: 0 / 0.5797 GB, free: 0.832 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.831e-05/0.3799, allocations: 0 / 0.5797 GB, free: 0.832 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 338 * Number of variables: 338 Notification: Performance of Generate backend data structure: time 0.004617/0.3845, allocations: 1.757 MB / 0.5814 GB, free: 15.04 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.3845, allocations: 8.031 kB / 0.5814 GB, free: 15.03 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002238/0.3847, allocations: 194.7 kB / 0.5816 GB, free: 14.83 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009488/0.3942, allocations: 1.272 MB / 0.5828 GB, free: 13.56 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001218/0.3955, allocations: 0.504 MB / 0.5833 GB, free: 13.03 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.699e-05/0.3955, allocations: 107 kB / 0.5834 GB, free: 12.92 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002376/0.3958, allocations: 135.9 kB / 0.5835 GB, free: 12.79 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00233/0.3981, allocations: 1.242 MB / 0.5847 GB, free: 11.52 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.632e-05/0.3982, allocations: 11.94 kB / 0.5848 GB, free: 11.51 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000123/0.3983, allocations: 52 kB / 0.5848 GB, free: 11.46 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.87e-05/0.3983, allocations: 32 kB / 0.5848 GB, free: 11.43 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002636/0.401, allocations: 1.459 MB / 0.5863 GB, free: 9.965 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00873/0.4097, allocations: 4.197 MB / 0.5904 GB, free: 5.664 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001822/0.4115, allocations: 0.831 MB / 0.5912 GB, free: 4.824 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006048/0.4121, allocations: 332.2 kB / 0.5915 GB, free: 4.5 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001435/0.4123, allocations: 40.94 kB / 0.5915 GB, free: 4.461 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.535e-05/0.4123, allocations: 43.56 kB / 0.5916 GB, free: 4.406 MB / 430.1 MB Notification: Performance of pre-optimization done (n=90): time 3.086e-06/0.4123, allocations: 0 / 0.5916 GB, free: 4.406 MB / 430.1 MB Notification: Performance of matching and sorting (n=90): time 0.002523/0.4148, allocations: 1.06 MB / 0.5926 GB, free: 3.34 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.194e-05/0.4149, allocations: 60.41 kB / 0.5927 GB, free: 3.27 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001379/0.4163, allocations: 0.8247 MB / 0.5935 GB, free: 2.43 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001063/0.4164, allocations: 41.7 kB / 0.5935 GB, free: 2.383 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004624/0.4168, allocations: 0.5117 MB / 0.594 GB, free: 1.863 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003427/0.4172, allocations: 333.2 kB / 0.5943 GB, free: 1.535 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003611/0.4175, allocations: 198.8 kB / 0.5945 GB, free: 1.336 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002627/0.4178, allocations: 406.7 kB / 0.5949 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006952/0.4185, allocations: 346.5 kB / 0.5952 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009387/0.4194, allocations: 0.6231 MB / 0.5958 GB, free: 15.85 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001599/0.421, allocations: 0.9914 MB / 0.5968 GB, free: 14.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.435e-06/0.4211, allocations: 0 / 0.5968 GB, free: 14.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.002449/0.4235, allocations: 1.198 MB / 0.598 GB, free: 13.54 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.952e-05/0.4235, allocations: 11.94 kB / 0.598 GB, free: 13.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.133e-05/0.4236, allocations: 8 kB / 0.598 GB, free: 13.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003137/0.4239, allocations: 73.61 kB / 0.5981 GB, free: 13.44 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.4249, allocations: 263.6 kB / 0.5983 GB, free: 13.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002513/0.4274, allocations: 2.625 MB / 0.6009 GB, free: 10.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/0.4284, allocations: 150.7 kB / 0.601 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.4285, allocations: 55.98 kB / 0.6011 GB, free: 10.12 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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.0004616/0.429, allocations: 253.5 kB / 0.6013 GB, free: 9.863 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001774/0.4291, allocations: 99.33 kB / 0.6014 GB, free: 9.766 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001998/0.4311, allocations: 1.107 MB / 0.6025 GB, free: 8.629 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/0.4311, allocations: 8 kB / 0.6025 GB, free: 8.621 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.4312, allocations: 0 / 0.6025 GB, free: 8.621 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/0.4312, allocations: 7.984 kB / 0.6025 GB, free: 8.613 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004092/0.4353, allocations: 2.408 MB / 0.6049 GB, free: 6.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.446e-05/0.4353, allocations: 8 kB / 0.6049 GB, free: 6.062 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007409/0.436, allocations: 175.7 kB / 0.605 GB, free: 5.891 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002323/0.4362, allocations: 65.67 kB / 0.6051 GB, free: 5.82 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.923e-05/0.4363, allocations: 27.98 kB / 0.6051 GB, free: 5.793 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002234/0.4385, allocations: 2.615 MB / 0.6077 GB, free: 2.949 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-05/0.4386, allocations: 11.94 kB / 0.6077 GB, free: 2.938 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002434/0.441, allocations: 1.482 MB / 0.6091 GB, free: 1.359 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002638/0.4412, allocations: 127.1 kB / 0.6093 GB, free: 1.234 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.4414, allocations: 27.95 kB / 0.6093 GB, free: 1.207 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006693/0.4421, allocations: 55.97 kB / 0.6093 GB, free: 1.152 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001824/0.4422, allocations: 84.34 kB / 0.6094 GB, free: 1.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.314e-05/0.4423, allocations: 36 kB / 0.6094 GB, free: 1.035 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007892/0.4431, allocations: 0.581 MB / 0.61 GB, free: 468 kB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4431, allocations: 0 / 0.61 GB, free: 468 kB / 446.1 MB Notification: Performance of remove unused functions: time 0.001037/0.4441, allocations: 311.6 kB / 0.6103 GB, free: 156 kB / 446.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 (93): * Single equations (assignments): 91 * 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.002908/0.447, allocations: 2.087 MB / 0.6124 GB, free: 13.95 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002002/0.449, allocations: 1.058 MB / 0.6134 GB, free: 12.87 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.449, allocations: 2 kB / 0.6134 GB, free: 12.87 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000976/0.45, allocations: 0.5917 MB / 0.614 GB, free: 12.25 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008387/0.4509, allocations: 122.4 kB / 0.6141 GB, free: 12.13 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01283/0.4637, allocations: 8.483 MB / 0.6224 GB, free: 3.145 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000681/0.4644, allocations: 1.008 MB / 0.6234 GB, free: 2.109 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005833/0.465, allocations: 155.8 kB / 0.6235 GB, free: 1.953 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005583/0.4655, allocations: 387.3 kB / 0.6239 GB, free: 1.574 MB / 462.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4655, allocations: 0 / 0.6239 GB, free: 1.574 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06575/0.5313, allocations: 20.68 MB / 0.6441 GB, free: 13.05 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/13.94, allocations: 20.05 kB / 0.6441 GB, free: 13.03 MB / 494.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019992 ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/SerialConnection/SerialConnection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable v.re in file ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.csv. Warning: Get data of variable v.re from file ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.csv failed! Error: Could not read variable v.im in file ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.csv. Warning: Get data of variable v.im from file ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.070388168001955]