Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 209.3 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.4/1.4, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2188/0.2188, allocations: 46.96 MB / 360.9 MB, free: 4.074 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00202/0.00202, allocations: 71.83 kB / 0.4961 GB, free: 7.762 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.2936, allocations: 66.04 MB / 0.5606 GB, free: 4.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.008596/0.3022, allocations: 6.573 MB / 0.567 GB, free: 13.66 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004592/0.3068, allocations: 2.225 MB / 0.5692 GB, free: 11.43 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006255/0.3074, allocations: 27.94 kB / 0.5692 GB, free: 11.4 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003883/0.3113, allocations: 1.621 MB / 0.5708 GB, free: 9.777 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001923/0.3132, allocations: 0.6911 MB / 0.5715 GB, free: 9.086 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001609/0.3149, allocations: 0.7342 MB / 0.5722 GB, free: 8.359 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001494/0.3164, allocations: 1.249 MB / 0.5734 GB, free: 7.102 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001271/0.3176, allocations: 0.8673 MB / 0.5743 GB, free: 6.207 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006667/0.3183, allocations: 0.5253 MB / 0.5748 GB, free: 5.68 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007415/0.319, allocations: 0.6614 MB / 0.5754 GB, free: 5.016 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001509/0.3192, allocations: 108 kB / 0.5755 GB, free: 4.91 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006654/0.3198, allocations: 295.8 kB / 0.5758 GB, free: 4.621 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002309/0.3201, allocations: 275 kB / 0.5761 GB, free: 4.352 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005059/0.3206, allocations: 0.4975 MB / 0.5765 GB, free: 3.852 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001918/0.3225, allocations: 1.619 MB / 0.5781 GB, free: 2.227 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3225, allocations: 4 kB / 0.5781 GB, free: 2.223 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3225, allocations: 0 / 0.5781 GB, free: 2.223 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.58e-05/0.3225, allocations: 0 / 0.5781 GB, free: 2.223 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.004409/0.3269, allocations: 1.757 MB / 0.5798 GB, free: 440 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.327, allocations: 12.03 kB / 0.5799 GB, free: 428 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002284/0.3272, allocations: 198.7 kB / 0.58 GB, free: 220 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009286/0.3365, allocations: 1.268 MB / 0.5813 GB, free: 14.95 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001285/0.3378, allocations: 0.5079 MB / 0.5818 GB, free: 14.41 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.846e-05/0.3379, allocations: 95.03 kB / 0.5819 GB, free: 14.32 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002205/0.3381, allocations: 139.9 kB / 0.582 GB, free: 14.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002516/0.3406, allocations: 1.425 MB / 0.5834 GB, free: 12.69 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.362e-05/0.3406, allocations: 4 kB / 0.5834 GB, free: 12.68 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001251/0.3408, allocations: 56 kB / 0.5835 GB, free: 12.63 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.068e-05/0.3408, allocations: 32 kB / 0.5835 GB, free: 12.6 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002487/0.3433, allocations: 1.435 MB / 0.5849 GB, free: 11.16 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007729/0.351, allocations: 3.858 MB / 0.5887 GB, free: 7.195 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001833/0.3528, allocations: 0.81 MB / 0.5894 GB, free: 6.379 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006323/0.3535, allocations: 336.2 kB / 0.5898 GB, free: 6.047 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001371/0.3536, allocations: 32.97 kB / 0.5898 GB, free: 6.016 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.254e-05/0.3537, allocations: 47.56 kB / 0.5898 GB, free: 5.957 MB / 430.1 MB Notification: Performance of pre-optimization done (n=90): time 3.076e-06/0.3537, allocations: 0 / 0.5898 GB, free: 5.957 MB / 430.1 MB Notification: Performance of matching and sorting (n=90): time 0.002482/0.3562, allocations: 1.056 MB / 0.5909 GB, free: 4.895 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.358e-05/0.3562, allocations: 64.41 kB / 0.5909 GB, free: 4.82 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001231/0.3575, allocations: 0.848 MB / 0.5918 GB, free: 3.957 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.68e-05/0.3575, allocations: 41.7 kB / 0.5918 GB, free: 3.91 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000406/0.358, allocations: 0.5156 MB / 0.5923 GB, free: 3.387 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002737/0.3582, allocations: 321.3 kB / 0.5926 GB, free: 3.07 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003237/0.3586, allocations: 206.8 kB / 0.5928 GB, free: 2.863 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002249/0.3588, allocations: 402.7 kB / 0.5932 GB, free: 2.461 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006727/0.3594, allocations: 342.5 kB / 0.5935 GB, free: 2.125 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009583/0.3604, allocations: 0.627 MB / 0.5941 GB, free: 1.383 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00159/0.362, allocations: 0.9914 MB / 0.5951 GB, free: 288 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.362, allocations: 0 / 0.5951 GB, free: 288 kB / 430.1 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.002302/0.3643, allocations: 1.197 MB / 0.5963 GB, free: 15.07 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.62e-05/0.3643, allocations: 11.94 kB / 0.5963 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.586e-05/0.3643, allocations: 8 kB / 0.5963 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002952/0.3646, allocations: 70.39 kB / 0.5964 GB, free: 14.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/0.3657, allocations: 267.5 kB / 0.5966 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002411/0.3681, allocations: 2.613 MB / 0.5992 GB, free: 11.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009097/0.369, allocations: 154.8 kB / 0.5993 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.433e-05/0.3691, allocations: 47.98 kB / 0.5994 GB, free: 11.67 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.0004247/0.3695, allocations: 261.5 kB / 0.5996 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001624/0.3697, allocations: 103.3 kB / 0.5997 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001953/0.3716, allocations: 1.103 MB / 0.6008 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/0.3716, allocations: 12 kB / 0.6008 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.3716, allocations: 0 / 0.6008 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.3716, allocations: 7.969 kB / 0.6008 GB, free: 10.15 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003871/0.3755, allocations: 2.224 MB / 0.603 GB, free: 7.789 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/0.3755, allocations: 4 kB / 0.603 GB, free: 7.785 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007513/0.3763, allocations: 187.7 kB / 0.6032 GB, free: 7.602 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002191/0.3765, allocations: 66.45 kB / 0.6032 GB, free: 7.531 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.905e-05/0.3766, allocations: 27.98 kB / 0.6032 GB, free: 7.504 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002239/0.3788, allocations: 2.602 MB / 0.6058 GB, free: 4.672 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.685e-06/0.3788, allocations: 8 kB / 0.6058 GB, free: 4.664 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002673/0.3815, allocations: 1.493 MB / 0.6073 GB, free: 3.074 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000271/0.3817, allocations: 123.2 kB / 0.6074 GB, free: 2.953 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/0.3819, allocations: 27.94 kB / 0.6074 GB, free: 2.926 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006433/0.3825, allocations: 51.91 kB / 0.6074 GB, free: 2.875 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.3827, allocations: 84.34 kB / 0.6075 GB, free: 2.793 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.293e-05/0.3827, allocations: 35.98 kB / 0.6076 GB, free: 2.758 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008247/0.3836, allocations: 0.585 MB / 0.6081 GB, free: 2.176 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3836, allocations: 0 / 0.6081 GB, free: 2.176 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001057/0.3846, allocations: 307.6 kB / 0.6084 GB, free: 1.875 MB / 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.002957/0.3876, allocations: 2.095 MB / 0.6105 GB, free: 15.67 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001996/0.3896, allocations: 1.042 MB / 0.6115 GB, free: 14.59 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/0.3896, allocations: 4 kB / 0.6115 GB, free: 14.59 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009641/0.3906, allocations: 0.5976 MB / 0.6121 GB, free: 13.97 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008062/0.3914, allocations: 119.2 kB / 0.6122 GB, free: 13.86 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01298/0.4043, allocations: 8.47 MB / 0.6205 GB, free: 4.887 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005081/0.4048, allocations: 428.3 kB / 0.6209 GB, free: 4.438 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006066/0.4054, allocations: 155.7 kB / 0.621 GB, free: 4.281 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005653/0.406, allocations: 387.3 kB / 0.6214 GB, free: 3.902 MB / 462.1 MB Notification: Performance of SimCode: time 1.042e-06/0.406, allocations: 0 / 0.6214 GB, free: 3.902 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08639/0.4924, allocations: 21.5 MB / 0.6424 GB, free: 14.65 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.6, allocations: 0 / 0.6424 GB, free: 14.65 MB / 494.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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_4_1_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection.fmu > ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.csv. Warning: Get data of variable v.re from file ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.csv failed! Error: Could not read variable v.im in file ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.csv. Warning: Get data of variable v.im from file ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.535490070004016]