Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.FrequencySweep.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.001342/0.001342, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.001502/0.001502, allocations: 218.9 kB / 21.46 MB, free: 1.586 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.546/1.546, allocations: 230.6 MB / 254.8 MB, free: 15.11 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.268/0.268, allocations: 46.93 MB / 357.8 MB, free: 10.34 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.FrequencySweep,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_FrequencySweep",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.FrequencySweep,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_FrequencySweep",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 59.91 kB / 0.4916 GB, free: 8.016 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1356, allocations: 66 MB / 0.5561 GB, free: 5.887 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.FrequencySweep): time 0.008263/0.1439, allocations: 6.574 MB / 0.5625 GB, free: 15.28 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004254/0.1481, allocations: 2.271 MB / 0.5647 GB, free: 13 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004475/0.1486, allocations: 20 kB / 0.5647 GB, free: 12.98 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003594/0.1522, allocations: 1.536 MB / 0.5662 GB, free: 11.44 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002272/0.1544, allocations: 0.7148 MB / 0.5669 GB, free: 10.72 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001307/0.1557, allocations: 0.5957 MB / 0.5675 GB, free: 10.13 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001541/0.1573, allocations: 1.174 MB / 0.5686 GB, free: 8.949 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001271/0.1585, allocations: 0.7156 MB / 0.5693 GB, free: 8.203 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007552/0.1593, allocations: 0.5177 MB / 0.5698 GB, free: 7.684 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007239/0.16, allocations: 0.6186 MB / 0.5705 GB, free: 7.062 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001409/0.1602, allocations: 108 kB / 0.5706 GB, free: 6.957 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006674/0.1608, allocations: 287.8 kB / 0.5708 GB, free: 6.676 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002387/0.1611, allocations: 263 kB / 0.5711 GB, free: 6.418 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005557/0.1616, allocations: 0.5559 MB / 0.5716 GB, free: 5.859 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001871/0.1635, allocations: 1.518 MB / 0.5731 GB, free: 4.336 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1635, allocations: 0 / 0.5731 GB, free: 4.336 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.1635, allocations: 0 / 0.5731 GB, free: 4.336 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.754e-05/0.1635, allocations: 4 kB / 0.5731 GB, free: 4.332 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.004735/0.1683, allocations: 1.688 MB / 0.5748 GB, free: 2.59 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.1683, allocations: 12.03 kB / 0.5748 GB, free: 2.578 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.469e-05/0.1684, allocations: 37.78 kB / 0.5748 GB, free: 2.539 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002725/0.1687, allocations: 184 kB / 0.575 GB, free: 2.348 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008742/0.1774, allocations: 1.128 MB / 0.5761 GB, free: 1.219 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001212/0.1786, allocations: 0.5415 MB / 0.5766 GB, free: 0.6328 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.738e-05/0.1787, allocations: 90.77 kB / 0.5767 GB, free: 0.543 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002042/0.1789, allocations: 120.3 kB / 0.5768 GB, free: 436 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002858/0.1818, allocations: 1.38 MB / 0.5782 GB, free: 15 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.646e-05/0.1818, allocations: 7.984 kB / 0.5782 GB, free: 14.99 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001377/0.1819, allocations: 44 kB / 0.5782 GB, free: 14.95 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.369e-05/0.182, allocations: 32 kB / 0.5782 GB, free: 14.91 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00332/0.1853, allocations: 1.445 MB / 0.5797 GB, free: 13.47 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008885/0.1942, allocations: 5.71 MB / 0.5852 GB, free: 7.262 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00375/0.1979, allocations: 2.14 MB / 0.5873 GB, free: 4.812 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009814/0.1989, allocations: 408.9 kB / 0.5877 GB, free: 4.395 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000201/0.1991, allocations: 187 kB / 0.5879 GB, free: 4.176 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.336e-05/0.1992, allocations: 50.5 kB / 0.5879 GB, free: 4.117 MB / 446.1 MB Notification: Performance of pre-optimization done (n=92): time 2.604e-06/0.1992, allocations: 0 / 0.5879 GB, free: 4.117 MB / 446.1 MB Notification: Performance of matching and sorting (n=116): time 0.2892/0.4883, allocations: 4.51 MB / 0.5923 GB, free: 33.97 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.779e-05/0.4884, allocations: 245.6 kB / 0.5926 GB, free: 33.69 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007188/0.4891, allocations: 0.5627 MB / 0.5931 GB, free: 33.57 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001552/0.4893, allocations: 47.22 kB / 0.5932 GB, free: 33.54 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002952/0.4896, allocations: 475.7 kB / 0.5936 GB, free: 33.44 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004073/0.49, allocations: 417.2 kB / 0.594 GB, free: 33.22 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005285/0.4905, allocations: 242 kB / 0.5942 GB, free: 33.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.4907, allocations: 387.6 kB / 0.5946 GB, free: 32.89 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002171/0.4929, allocations: 0.6082 MB / 0.5952 GB, free: 32.88 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002253/0.4951, allocations: 0.911 MB / 0.5961 GB, free: 32.55 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004201/0.4993, allocations: 1.541 MB / 0.5976 GB, free: 32.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.526e-05/0.4993, allocations: 2.094 kB / 0.5976 GB, free: 32.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.005221/0.5046, allocations: 1.757 MB / 0.5993 GB, free: 31.58 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.152e-05/0.5046, allocations: 11.5 kB / 0.5993 GB, free: 31.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.999e-05/0.5046, allocations: 9.438 kB / 0.5993 GB, free: 31.58 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003115/0.5049, allocations: 68.5 kB / 0.5994 GB, free: 31.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002123/0.507, allocations: 426.9 kB / 0.5998 GB, free: 31.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.646e-05/0.5071, allocations: 24.66 kB / 0.5998 GB, free: 31.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001571/0.5087, allocations: 137.3 kB / 0.6 GB, free: 31.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/0.5088, allocations: 66.11 kB / 0.6 GB, free: 31.48 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (160): * Single equations (assignments): 158 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000516/0.5093, allocations: 277 kB / 0.6003 GB, free: 31.25 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003411/0.5096, allocations: 85.03 kB / 0.6004 GB, free: 31.21 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004903/0.5145, allocations: 1.627 MB / 0.602 GB, free: 30.64 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.39e-05/0.5146, allocations: 18.25 kB / 0.602 GB, free: 30.64 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/0.5146, allocations: 2.531 kB / 0.602 GB, free: 30.64 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.016e-05/0.5146, allocations: 10.45 kB / 0.602 GB, free: 30.64 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00697/0.5216, allocations: 3.16 MB / 0.6051 GB, free: 29.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/0.5216, allocations: 2.312 kB / 0.6051 GB, free: 29.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00194/0.5235, allocations: 357.4 kB / 0.6054 GB, free: 29.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002304/0.5238, allocations: 57.38 kB / 0.6055 GB, free: 29.12 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.021e-05/0.5239, allocations: 40.94 kB / 0.6055 GB, free: 29.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.194e-05/0.5239, allocations: 8.781 kB / 0.6055 GB, free: 29.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.5239, allocations: 9.562 kB / 0.6055 GB, free: 29.09 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006601/0.5305, allocations: 2.709 MB / 0.6082 GB, free: 27.82 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002687/0.5307, allocations: 154.7 kB / 0.6083 GB, free: 27.67 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001771/0.5309, allocations: 26.98 kB / 0.6084 GB, free: 27.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/0.5323, allocations: 132.1 kB / 0.6085 GB, free: 27.63 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003032/0.5326, allocations: 96.92 kB / 0.6086 GB, free: 27.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/0.5327, allocations: 47.77 kB / 0.6086 GB, free: 27.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000576/0.5333, allocations: 397.6 kB / 0.609 GB, free: 27.41 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5333, allocations: 1.062 kB / 0.609 GB, free: 27.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001355/0.5347, allocations: 286.7 kB / 0.6093 GB, free: 27.38 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (currentSource.currentSource.pin_p.reference.gamma,voltageSource.voltageSource.pin_p.reference.gamma,currentCurrent.pin_p.reference.gamma,constantSource.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 (124): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006525/0.5412, allocations: 3.326 MB / 0.6125 GB, free: 25.53 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004268/0.5454, allocations: 1.605 MB / 0.6141 GB, free: 24.92 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.5455, allocations: 448 / 0.6141 GB, free: 24.92 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001987/0.5474, allocations: 0.8757 MB / 0.6149 GB, free: 24.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00112/0.5486, allocations: 121.7 kB / 0.6151 GB, free: 24.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01608/0.5646, allocations: 9.77 MB / 0.6246 GB, free: 18.92 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003913/0.565, allocations: 1.015 MB / 0.6256 GB, free: 18.09 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006924/0.5657, allocations: 174.7 kB / 0.6258 GB, free: 18.01 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005649/0.5663, allocations: 439.3 kB / 0.6262 GB, free: 17.66 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/0.5663, allocations: 4 kB / 0.6262 GB, free: 17.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04351/0.6098, allocations: 21.36 MB / 0.647 GB, free: 13.43 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.36/17.97, allocations: 8.047 kB / 0.647 GB, free: 13.42 MB / 462.1 MB " [Timeout remaining time 642] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.FrequencySweep.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.FrequencySweep.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.FrequencySweep.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.FrequencySweep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.FrequencySweep_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_FrequencySweep_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_FrequencySweep.fmu > ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.FrequencySweep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.FrequencySweep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/FrequencySweep/FrequencySweep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.FrequencySweep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 21.789253986964468]